bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class ManifoldShapes

    Index

    Constructors

    • Parameters

      • manifoldWorkerManager: ManifoldWorkerManager

      Returns ManifoldShapes

    create

    • Convert a Mesh into a Manifold, retaining its properties and merging only the positions according to the merge vectors. Will throw an error if the result is not an oriented 2-manifold. Will collapse degenerate triangles and unnecessary vertices.

      All fields are read, making this structure suitable for a lossless round-trip of data from manifoldToMesh(). For multi-material input, use reserveIDs() to set a unique originalID for each material, and sort the materials into triangle runs.

      Parameters

      Returns Promise<ManifoldPointer>

      manifold

      manifold from mesh

      true

    primitives

    • Create a 3D tetrahedron shape

      Returns Promise<ManifoldPointer>

      Tetrahedron solid

      tetrahedron

      true