Overview
TheArcPrimitive class creates a circular arc segment defined by a center point, radius, and start/end angles. It extends the kernel Arc class and implements the IPrimitive interface for selection and editing capabilities.
Constructor
Configuration object for the arc primitive
ArcOptions
Unique identifier for the arc object. Auto-generated if not provided.
Center point coordinates as
[x, y, z]Radius of the arc
Starting angle in radians
Ending angle in radians
Number of segments to approximate the arc curve. Higher values create smoother arcs.
Arc color as hexadecimal number (e.g.,
0xFF0000 for red)Properties
Sets the center point of the arc. Updates geometry automatically.
Gets or sets the arc radius. Updates geometry automatically.
Gets or sets the starting angle in radians. Updates geometry automatically.
Gets or sets the ending angle in radians. Updates geometry automatically.
Gets or sets the number of segments. Updates geometry automatically.
Gets or sets the arc color. Updates appearance automatically.
Indicates whether the arc is currently selected
Indicates whether the arc is in edit mode
Returns
'ArcPrimitive' - the type identifierMethods
getOPConfig()
Returns the current configuration of the arc.ArcOptions - Current arc configuration