Bitbybit Docs
    Preparing search index...

    Class Manifold

    Solids in the Manifold kernel: shapes builds cubes, spheres, cylinders and solids from meshes, booleans fuses, cuts and splits them, operations hulls, slices, refines and smooths them, transforms moves them and evaluate measures them. A solid here is a closed triangle mesh; every operation returns a new solid and the inputs stay as they are. The methods on this class turn solids into plain mesh data.

    Index

    Constructors

    Properties

    operations: ManifoldOperations
    transforms: ManifoldTransforms

    meshing

    • Turns a solid into plain mesh data: vertex properties, triangle indexes and the runs that group triangles by their original shape.

      normalIdx names the vertex property channel that holds normals, when the solid carries them.

      Parameters

      Returns Promise<DecomposedManifoldMeshDto>

      The mesh data

      const mesh = await bitbybit.manifold.manifold.manifoldToMesh({ manifold: cube });