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

    Class ManifoldEvaluate

    Index

    Constructors

    • Parameters

      • manifoldWorkerManager: ManifoldWorkerManager

      Returns ManifoldEvaluate

    basic

    • Get surface area of manifold

      Parameters

      Returns Promise<number>

      surface area of manifold

      surface area

      false

    • Check if manifold contains triangles

      Parameters

      Returns Promise<boolean>

      boolean indicating emptyness

      is empty

      false

    • Get number of vertices in manifold

      Parameters

      Returns Promise<number>

      number of vertices of manifold

      num vert

      false

    • Get number of triangles in manifold

      Parameters

      Returns Promise<number>

      number of triangles of manifold

      num triangles

      false

    • Get number of edges in manifold

      Parameters

      Returns Promise<number>

      number of edges of manifold

      num edges

      false

    • Get number of properties in manifold

      Parameters

      Returns Promise<number>

      number of properties of manifold

      num prop

      false

    • The number of property vertices in the Manifold. This will always be >= numVert, as some physical vertices may be duplicated to account for different properties on different neighboring triangles.

      Parameters

      Returns Promise<number>

      number of properties of manifold

      num prop vert

      false

    • Returns the axis-aligned bounding box of all the Manifold's vertices.

      Parameters

      Returns Promise<Vector3[]>

      bounding box corner vectors of manifold

      bounding box

      false

    • Returns the tolerance of this Manifold's vertices, which tracks the approximate rounding error over all the transforms and operations that have led to this state. Any triangles that are colinear within this tolerance are considered degenerate and removed. This is the value of ε defining ε-valid.

      Parameters

      Returns Promise<number>

      tolerance of manifold

      tolerance

      false

    • The genus is a topological property of the manifold, representing the number of handles. A sphere is 0, torus 1, etc. It is only meaningful for a single mesh, so it is best to call Decompose() first.

      Parameters

      Returns Promise<number>

      genus of manifold

      genus

      false

    • Returns the minimum gap between two manifolds. Returns a float between 0 and searchLength.

      Parameters

      Returns Promise<number>

      minimum

      min gap

      false

    • If this mesh is an original, this returns its ID that can be referenced by product manifolds. If this manifold is a product, this returns -1.

      Parameters

      Returns Promise<number>

      original id of manifold

      original id

      false

    • Returns the reason for an input Mesh producing an empty Manifold. This Status will carry on through operations like NaN propogation, ensuring an errored mesh doesn't get mysteriously lost. Empty meshes may still show NoError, for instance the intersection of non-overlapping meshes.

      Parameters

      Returns Promise<string>

      error status string (NoError, NotManifold, InvalidConstruction, etc.)

      status

      false