C# Class R3.Core.PovRay

Mostrar archivo Open project: roice3/Honeycombs

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AppendEuclideanPolygons() public static method

public static AppendEuclideanPolygons ( Polygon polys, string fileName ) : void
polys Polygon
fileName string
return void

AppendFacets() public static method

An alternative version for facets that require extra clipping.
public static AppendFacets ( H3 cells, string fileName ) : void
cells H3
fileName string
return void

AppendFacets() public static method

Append facets to the end of an existing povray file.
public static AppendFacets ( Sphere facets, string fileName ) : void
facets R3.Geometry.Sphere
fileName string
return void

AppendSimplex() public static method

public static AppendSimplex ( Sphere facets, Vector3D interiorPoint, int include, string fileName ) : void
facets R3.Geometry.Sphere
interiorPoint Vector3D
include int
fileName string
return void

CreateSimplex() public static method

A version for the fundamental simplex.
public static CreateSimplex ( Sphere facets, string fileName ) : void
facets R3.Geometry.Sphere
fileName string
return void

Cylinder() public static method

public static Cylinder ( Vector3D start, Vector3D end, double rad ) : string
start Vector3D
end Vector3D
rad double
return string

EdgeSphereSweep() public static method

public static EdgeSphereSweep ( Vector3D points, Sphere>.Func sphereFunc, Vector3D color = newVector3D() ) : string
points Vector3D
sphereFunc Sphere>.Func
color Vector3D
return string

Sphere() public static method

public static Sphere ( Sphere sphere ) : string
sphere R3.Geometry.Sphere
return string

WriteEdges() public static method

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
return void

WriteH3Edges() public static method

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
return void

WriteMesh() public static method

public static WriteMesh ( Mesh mesh, string fileName, bool append = false ) : void
mesh R3.Geometry.Mesh
fileName string
append bool
return void