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)
note

All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.