Class CSG2
Implements
Accessors
num Prop
-
get numProp(): number
Return the size of a vertex (at least 3 for the position)
Returns number
Methods
add
dispose
-
Dispose the CSG resources
Returns void
intersect
print Debug
-
Print debug information about the CSG
Returns void
subtract
to Mesh
-
Generate a mesh from the CSG
Parameters
- name: string
defines the name of the mesh
Optionalscene: anydefines the scene to use to create the mesh
Optionaloptions: Partial<IMeshRebuildOptions>defines the options to use to rebuild the mesh
Returns Mesh
a new Mesh
- name: string
to Vertex Data
-
Generate a vertex data from the CSG
Parameters
Optionaloptions: Partial<IVertexDataRebuildOptions>defines the options to use to rebuild the vertex data
Returns VertexData
a new vertex data
StaticFrom Mesh
StaticFrom Vertex Data
-
Create a new Constructive Solid Geometry from a vertexData
Parameters
- vertexData: VertexData
defines the vertexData to use to create the CSG
Returns CSG2
a new CSG2 class
- vertexData: VertexData
Wrapper around the Manifold library https://manifoldcad.org/ Use this class to perform fast boolean operations on meshes
See