Skip to main content

ellipse()

Draws an ellipse at the current position.

Returns: ExtrudableGeometry

tip

See the guide for detailed usage examples.

Signatures

ellipse(rx: number, ry: number): ExtrudableGeometry

Draws an ellipse at the current position.

ParameterTypeDescription
rxnumberSemi-radius along the plane's X axis
rynumberSemi-radius along the plane's Y axis

ellipse(center: Point2DLike, rx: number, ry: number): ExtrudableGeometry

Draws an ellipse at a given center.

ParameterTypeDescription
centerPoint2DLikeThe center point
rxnumberSemi-radius along the plane's X axis
rynumberSemi-radius along the plane's Y axis

ellipse(targetPlane: SceneObject | PlaneLike, rx: number, ry: number): ExtrudableGeometry

Draws an ellipse on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
rxnumberSemi-radius along the plane's X axis
rynumberSemi-radius along the plane's Y axis

ellipse(targetPlane: SceneObject | PlaneLike, center: Point2DLike, rx: number, ry: number): ExtrudableGeometry

Draws an ellipse at a given center on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
centerPoint2DLikeThe center point in plane-local coordinates
rxnumberSemi-radius along the plane's X axis
rynumberSemi-radius along the plane's Y axis