Skip to main content

circle()

Draws a circle at a given center with an optional diameter.

Returns: ExtrudableGeometry

tip

See the guide for detailed usage examples.

Signatures

circle(center: Point2DLike, diameter?: number): ExtrudableGeometry

Draws a circle at a given center with an optional diameter.

ParameterTypeDescription
centerPoint2DLikeThe center point
diameternumberThe circle diameter (defaults to 40) (optional)

circle(diameter?: number): ExtrudableGeometry

Draws a circle at the origin with an optional diameter.

ParameterTypeDescription
diameternumberThe circle diameter (defaults to 40) (optional)

circle(targetPlane: SceneObject | PlaneLike, diameter: number): ExtrudableGeometry

Draws a circle with a given diameter on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
diameternumberThe circle diameter