Overview
The Arc primitive represents a segment of a circle in 3D space. It is defined by a center point, radius, start angle, end angle, and the number of segments used for tessellation. When the angle range equals 2π, the arc forms a complete circle. Use Cases:- Creating circular arcs and curves
- Drawing complete circles
- Rounded corners and fillets
- Circular patterns and designs
Constructor
- Rust
- TypeScript
Rust Constructor Parameters
Unique identifier for the arc instance
TypeScript Constructor Parameters
Configuration options for the arc
Optional unique identifier (auto-generated if not provided)
Center point of the arc
Radius of the arc
Starting angle in radians
Ending angle in radians
Number of line segments to approximate the arc (higher = smoother)
Arc color as a hexadecimal number (e.g., 0x00ff00 for green)
Enable thick line rendering using Line2
Line width when fatLines is enabled
Methods
set_config
- Rust
- TypeScript
generate_geometry
- Rust
- TypeScript
get_geometry_serialized
- Rust
- TypeScript
get_brep_serialized
- Rust
- TypeScript
getConfig
- TypeScript
discardGeometry
- TypeScript
Properties
Unique identifier for the arc instance
Center point of the arc (default: origin)
Radius of the arc (default: 1.0)
Starting angle in radians (default: 0.0)
Ending angle in radians (default: 2π)
Number of segments for tessellation (default: 32)
Internal BREP representation containing vertices, edges, and optionally a face for closed arcs
Arc color (TypeScript only, settable)
Code Examples
Creating a Semicircle
- Rust
- TypeScript
Creating a Full Circle
- Rust
- TypeScript
Creating a Quarter Arc
- TypeScript
Using Fat Lines for Arcs
- TypeScript
Updating Arc Parameters
- TypeScript
Live Demo
Arc Demo
Try the Arc primitive in the browser
See Also
Curve
Smooth curves through control points
Line
Straight line segments
Polyline
Connected line segments

