Frees the memory a solid or a cross-section holds inside the kernel; the object cannot be used afterwards. Call it for results a script no longer needs, so long sessions do not run out of memory.
The solid or cross-section to free
Frees the memory several solids or cross-sections hold inside the kernel; they cannot be used afterwards. Call it for results a script no longer needs, so long sessions do not run out of memory.
The solids or cross-sections to free
Turns a solid into plain mesh data, or a cross-section into its polygons, ready for drawing or export.
normalIdx names the vertex property channel that holds normals, when the solid carries
them.
The solid or cross-section and the optional normal channel
The mesh data of a solid, or the polygons of a cross-section
Turns a solid into a list of triangles, each three points, the same form
shapes.fromPolygonPoints reads back.
An empty solid gives an empty list.
The solid
One list of three points per triangle
Turns several solids into mesh data, or cross-sections into polygons, as
decomposeManifoldOrCrossSection does for one.
normalIdx gives one normal channel per shape.
The solids or cross-sections and the optional normal channels
One mesh or polygon list per shape, in the same order
Turns manifold shape into a mesh pointer that lives in worker's memory. This pointer can be used with bitbybit.manifold.mesh functions
Manifold shape
Pointer to manifold mesh definition
The entry point to the Manifold kernel, a fast mesh-based solid modeler:
manifoldbuilds and changes solids,crossSectionhandles the flat outlines they are extruded and revolved from, andmeshreads the triangle data. Manifold works on triangle meshes rather than exact curves, so booleans are quick and always watertight, and it keeps its own Z axis as up: extrusions grow along Z and slices are parallel to the XY plane. The methods on the service itself turn solids and cross-sections into plain mesh data for drawing.