Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MeshOperations

Index

Constructors

Methods

Constructors

constructor

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

    • manifoldWorkerManager: ManifoldWorkerManager

    Returns MeshOperations

Methods

merge

  • Updates the mergeFromVert and mergeToVert vectors in order to create a manifold solid. If the MeshGL is already manifold, no change will occur and the function will return false. Otherwise, this will merge verts along open edges within tolerance (the maximum of the MeshGL tolerance and the baseline bounding-box tolerance), keeping any from the existing merge vectors.

    There is no guarantee the result will be manifold - this is a best-effort helper function designed primarily to aid in the case where a manifold multi-material MeshGL was produced, but its merge vectors were lost due to a round-trip through a file format. Constructing a Manifold from the result will report a Status if it is not manifold.

    group

    base

    shortname

    merge

    drawable

    true

    Parameters

    Returns Promise<MeshPointer>

    merged mesh

Generated using TypeDoc