Manifold WASM Developer Guide
    Preparing search index...

    Module lib/level-of-detail

    Control detail level for the CrossSection.circle, CrossSection.revolve, Manifold.cylinder, and Manifold.sphere constructors.

    Libraries should not change these values, and if run through manifoldCAD or the manifoldCAD CLI, will not be able to. Libraries may get values to determine their own level of detail.

    Functions

    cleanup
    getCircularSegments

    Determine the appropriate number of segments for a given radius.

    getMinCircularAngle

    Get the current angle constraint.

    getMinCircularEdgeLength

    Get the current edge length constraint.

    resetToCircularDefaults

    Reset the circular construction parameters to their defaults if setMinCircularAngle(), setMinCircularEdgeLength(), or setCircularSegments() have been called.

    setCircularSegments

    Set the default number of segments in a circle. Overrides the edge length and angle constraints and sets the number of segments to exactly this value.

    setMinCircularAngle

    Set an angle constraint when calculating the number of segments in a circle. The number of segments will be rounded up to the nearest factor of four.

    setMinCircularEdgeLength

    Set a length constraint when calculating the number segments in a circle. The number of segments will be rounded up to the nearest factor of four.