Skip to main content

setCircularSegments

manifold-3d


manifold-3d / manifold-encapsulated-types / setCircularSegments

Function: setCircularSegments()

setCircularSegments(segments): void

Defined in: manifold-3d/manifold-encapsulated-types.d.ts:73

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.

Parameters

segments

number

Number of circular segments. Default is 0, meaning no constraint is applied.

Returns

void