For a given radius of circle, determine how many default segments there will be.
Resets the circular construction parameters to their defaults if setMinCircularAngle, setMinCircularEdgeLength, or setCircularSegments have been called.
Sets the default number of circular segments for the CrossSection.circle, Manifold.cylinder, Manifold.sphere, and Manifold.revolve constructors. Overrides the edge length and angle constraints and sets the number of segments to exactly this value.
Number of circular segments. Default is 0, meaning no constraint is applied.
Sets an angle constraint the default number of circular segments for the CrossSection.circle, Manifold.cylinder, Manifold.sphere, and Manifold.revolve constructors. The number of segments will be rounded up to the nearest factor of four.
The minimum angle in degrees between consecutive segments. The angle will increase if the the segments hit the minimum edge length. Default is 10 degrees.
Sets a length constraint the default number of circular segments for the CrossSection.circle, Manifold.cylinder, Manifold.sphere, and Manifold.revolve constructors. The number of segments will be rounded up to the nearest factor of four.
The minimum length of segments. The length will increase if the the segments hit the minimum angle. Default is 1.0.
Triangulates a set of /epsilon-valid polygons.
The set of polygons, wound CCW and representing multiple polygons and/or holes.
Optionalepsilon: numberThe value of epsilon, bounding the uncertainty of the input.
OptionalallowConvex: booleanIf true (default), the triangulator will use a fast triangulation if the input is convex, falling back to ear-clipping if not. The triangle quality may be lower, so set to false to disable this optimization.
The triangles, referencing the original polygon points in order.
Determine the result of the setMinCircularAngle, setMinCircularEdgeLength, and setCircularSegments defaults.