Skip to content

Vibe coding a plugin? Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

ArcCurve

A curve that approximates a circular arc or a full circle.

readonly center: Point3d

Center of the arc.


readonly edges: readonly Edge[]

The edges that make up the curve.

Curve.edges


readonly endAngle: number

End angle in radians, measured from xAxis around normal.


readonly entityId: number

Identifier that stays the same for the entity’s lifetime, including across undo and redo.

Curve.entityId


readonly isCircle: boolean

Whether the arc is a full circle.


readonly isDeleted: boolean

Whether the entity was deleted, for example by an edit or by undo.

Curve.isDeleted


readonly isValid: boolean

Whether the entity still exists in the model.

Curve.isValid


readonly normal: Vector3d

Unit normal of the arc’s plane.


readonly radius: number

Radius in meters.


readonly startAngle: number

Start angle in radians, measured from xAxis around normal.


readonly type: "ArcCurve"

The concrete class name, for narrowing unions such as AnyElement.

Curve.type


readonly xAxis: Vector3d

Direction that angles are measured from.

toJSON(): object

JSON.stringify writes the entity as its type and entityId, plus its name when it has one, such as { "type": "Group", "entityId": 12, "name": "Wheel" }.

object

entityId: number

optional name?: string

type: "Material" | "Vertex" | "Edge" | "Face" | "Loop" | "EdgeUse" | "Curve" | "ArcCurve" | "ComponentDefinition" | "ComponentInstance" | "Group" | "Layer" | "Guide" | "Text" | "LinearDimension" | "SectionPlane"

Curve.toJSON