solver::arcFunction in std::solver
Create a circular arc. By default, the arc segment sweeps counterclockwise from start to end. If the arc sweeps the wrong way, set direction = CW to make it sweep clockwise from start to end instead.
Use direction = CW to sweep the other way around the circle without
swapping the start and end points. This is the same shape as the first
example, but the arc travels from the base line's start to its end.
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
start | Point2d | The point where the arc begins. | Yes |
end | Point2d | The point where the arc ends. | Yes |
center | Point2d | The center of the circle the arc lies on. | Yes |
direction | string | The direction that the arc sweeps from start to end: CCW for counterclockwise or CW for clockwise. Defaults to CCW. | No |
construction | bool | Whether this segment is construction geometry rather than part of the modeled profile. | No |
Returns
Segment - A segment in a sketch created in a sketch block. It may be a line, arc, point, or other segment type.