Documentation ¶
Index ¶
Constants ¶
View Source
const ( LEAF = iota X_CLIP Y_CLIP Z_CLIP )
View Source
const ( FACE = 0 EDGE = 1 << 30 VERTEX = 2 << 30 )
Variables ¶
This section is empty.
Functions ¶
func UniformTetrahedronMesh ¶
UniformTetrahedronMesh assembles a volumetric tetrahedron mesh that tries its very best to encapsulate the sdf model. For best results mesh smooth parts that make good use of rounding, MinFunc and MaxFunc in Union, Difference and Intersect operations.
Types ¶
type BIH ¶
type BIH struct { Mesh // contains filtered or unexported fields }
TODO figure out what to make public
type ImportedSDF3 ¶
type ImportedSDF3 struct {
// contains filtered or unexported fields
}
func ImportModel ¶
func ImportModel(model []r3.Triangle, vertexTolOrZero float64) (ImportedSDF3, error)
ImportModel instantiates an SDF3 from a set of triangles defining a manifold surface. It can be used to import SDFs from triangle files such as STL and 3MF files. It will choose shared vertices among triangles using vertexTol. vertexTol should be of the order of 1/1000th of the size of the smallest triangle in the model. If set to 0 then it is inferred automatically.
func (ImportedSDF3) Bounds ¶
func (s ImportedSDF3) Bounds() r3.Box
Click to show internal directories.
Click to hide internal directories.