C# Класс R3.Core.PovRay

Показать файл Открыть проект

Открытые методы

Метод Описание
AppendEuclideanPolygons ( Polygon polys, string fileName ) : void
AppendFacets ( H3 cells, string fileName ) : void

An alternative version for facets that require extra clipping.

AppendFacets ( Sphere facets, string fileName ) : void

Append facets to the end of an existing povray file.

AppendSimplex ( Sphere facets, Vector3D interiorPoint, int include, string fileName ) : void
CreateSimplex ( Sphere facets, string fileName ) : void

A version for the fundamental simplex.

Cylinder ( Vector3D start, Vector3D end, double rad ) : string
EdgeSphereSweep ( Vector3D points, Sphere>.Func sphereFunc, Vector3D color = newVector3D() ) : string
Sphere ( Sphere sphere ) : string
WriteEdges ( Parameters parameters, Geometry g, H3 edges, string fileName, bool append ) : void

Make a povray file for all the edges of a model. Works for all geometries (in conformal models, e.g. Ball and Stereographic).

WriteH3Edges ( Parameters parameters, H3 edges, string fileName, bool append = false ) : void

Make a povray file for all the edges of an H3 model. Input edge locations are expected to live in the ball model.

WriteMesh ( Mesh mesh, string fileName, bool append = false ) : void

Приватные методы

Метод Описание
CH2RGB ( double H ) : Vector3D
CHSL2RGB ( Vector3D hsl ) : Vector3D
CheckForInvert ( Sphere facet, Vector3D point ) : bool
Edge ( Parameters parameters, Geometry g, H3 edge ) : string
EdgeCylinder ( Vector3D points, Sphere>.Func sphereFunc ) : string
FormatSphereNoMaterial ( Sphere sphere, bool invert, bool includeClosingBracket = true ) : string
FormatVec ( Vector3D v ) : string
FormatVecHiRes ( Vector3D v ) : string
H3Facet ( H3 cell, HashSet completed ) : string
H3Facet ( Sphere sphere ) : string
Polygon ( Polygon poly ) : string
SimplexFacets ( Sphere facets, Vector3D interiorPoint, int include ) : string
WriteMesh ( StreamWriter sw, Mesh mesh, string fileName, bool append = false ) : void

Описание методов

AppendEuclideanPolygons() публичный статический Метод

public static AppendEuclideanPolygons ( Polygon polys, string fileName ) : void
polys Polygon
fileName string
Результат void

AppendFacets() публичный статический Метод

An alternative version for facets that require extra clipping.
public static AppendFacets ( H3 cells, string fileName ) : void
cells H3
fileName string
Результат void

AppendFacets() публичный статический Метод

Append facets to the end of an existing povray file.
public static AppendFacets ( Sphere facets, string fileName ) : void
facets R3.Geometry.Sphere
fileName string
Результат void

AppendSimplex() публичный статический Метод

public static AppendSimplex ( Sphere facets, Vector3D interiorPoint, int include, string fileName ) : void
facets R3.Geometry.Sphere
interiorPoint Vector3D
include int
fileName string
Результат void

CreateSimplex() публичный статический Метод

A version for the fundamental simplex.
public static CreateSimplex ( Sphere facets, string fileName ) : void
facets R3.Geometry.Sphere
fileName string
Результат void

Cylinder() публичный статический Метод

public static Cylinder ( Vector3D start, Vector3D end, double rad ) : string
start Vector3D
end Vector3D
rad double
Результат string

EdgeSphereSweep() публичный статический Метод

public static EdgeSphereSweep ( Vector3D points, Sphere>.Func sphereFunc, Vector3D color = newVector3D() ) : string
points Vector3D
sphereFunc Sphere>.Func
color Vector3D
Результат string

Sphere() публичный статический Метод

public static Sphere ( Sphere sphere ) : string
sphere R3.Geometry.Sphere
Результат string

WriteEdges() публичный статический Метод

Make a povray file for all the edges of a model. Works for all geometries (in conformal models, e.g. Ball and Stereographic).
public static WriteEdges ( Parameters parameters, Geometry g, H3 edges, string fileName, bool append ) : void
parameters Parameters
g Geometry
edges H3
fileName string
append bool
Результат void

WriteH3Edges() публичный статический Метод

Make a povray file for all the edges of an H3 model. Input edge locations are expected to live in the ball model.
public static WriteH3Edges ( Parameters parameters, H3 edges, string fileName, bool append = false ) : void
parameters Parameters
edges H3
fileName string
append bool
Результат void

WriteMesh() публичный статический Метод

public static WriteMesh ( Mesh mesh, string fileName, bool append = false ) : void
mesh R3.Geometry.Mesh
fileName string
append bool
Результат void