Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ManifoldShapes

Index

Constructors

constructor

  • new ManifoldShapes(manifoldWorkerManager: ManifoldWorkerManager): ManifoldShapes
  • Parameters

    • manifoldWorkerManager: ManifoldWorkerManager

    Returns ManifoldShapes

Methods

cube

  • Create a 3D cube shape

    group

    primitives

    shortname

    cube

    drawable

    true

    Parameters

    Returns Promise<ManifoldPointer>

    Cube solid

cylinder

  • Create a 3D cylinder shape

    group

    primitives

    shortname

    cylinder

    drawable

    true

    Parameters

    Returns Promise<ManifoldPointer>

    Cylinder solid

fromPolygonPoints

  • Create a Manifold from a set of polygon points describing triangles.

    group

    create

    shortname

    from polygon points

    drawable

    true

    Parameters

    Returns Promise<ManifoldPointer>

    Manifold

manifoldFromMesh

  • 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.

    group

    create

    shortname

    manifold from mesh

    drawable

    true

    Parameters

    Returns Promise<ManifoldPointer>

    manifold

sphere

  • Create a 3D sphere shape

    group

    primitives

    shortname

    sphere

    drawable

    true

    Parameters

    Returns Promise<ManifoldPointer>

    Sphere solid

tetrahedron

  • Create a 3D tetrahedron shape

    group

    primitives

    shortname

    tetrahedron

    drawable

    true

    Returns Promise<ManifoldPointer>

    Tetrahedron solid

Generated using TypeDoc