Add an elliptic section to an existing sketch.
elliptic(
@sketch: Sketch,
center: Point2d,
angleStart: number(Angle),
angleEnd: number(Angle),
majorRadius: number(Length),
minorRadius: number(Length),
tag?: tag,
): Sketch
Arguments
Name | Type | Description | Required |
---|---|---|---|
sketch | Sketch | Which sketch should this path be added to? | Yes |
center | Point2d | The center of the ellipse. | Yes |
angleStart | number(Angle) | Where along the ellptic should this segment start? | Yes |
angleEnd | number(Angle) | Where along the ellptic should this segment end? | Yes |
majorRadius | number(Length) | The major radius, a, of the elliptic equation x^2 / a^2 + y^2 / b^2 = 1. | Yes |
minorRadius | number(Length) | The minor radius, b, of the elliptic equation x^2 / a^2 + y^2 / b^2 = 1. | Yes |
tag | tag | Create a new tag which refers to this arc. | No |
Returns
Sketch
- A sketch is a collection of paths.
Examples
majorRadius = 2
minorRadius = 1
ellip = ellipticPoint(majorRadius, minorRadius, x = 2)
exampleSketch = startSketchOn(XY)
|> startProfile(at = ellip, tag = $start)
|> elliptic(
center = [0, 0],
angleStart = segAng(start),
angleEnd = 160,
majorRadius,
minorRadius,
)
|> close()
example = extrude(exampleSketch, length = 10)