ALine
Extends Geometry
Inherited from Geometry
guide()
guide(): this
Marks this sketch geometry as construction geometry. Guide geometries are excluded from the final sketch output (e.g., extrude, revolve) unless explicitly included.
edge()
edge(roleOrIndex: string | number, roleIndex?: number): SceneObject
Uniform edge accessor. edge('top') selects this feature's edges by role
(optionally disambiguated by role index, e.g. edge('corner-arc', 2));
edge(1) selects by build-order index over the feature's real edges.
Rect roles: top/bottom/left/right and corner-arc 0–3 (radius-arg
order bl/br/tr/tl); polygon: side i; slot: side 0–1, cap-arc
0=left/1=right; circle/ellipse: perimeter.
Returns: SceneObject
| Parameter | Type | Description |
|---|---|---|
roleOrIndex | string | number | A role name, or a build-order edge index. |
roleIndex | number | Disambiguates roles that repeat (e.g. polygon sides). (optional) |
start()
start(): Vertex
Returns a lazy-evaluated vertex at the start point of this geometry element.
Returns: Vertex
end()
end(): Vertex
Returns a lazy-evaluated vertex at the end point of this geometry element.
Returns: Vertex
tangent()
tangent(): Vertex
Returns a lazy-evaluated vertex representing the tangent direction at the end of this geometry. Used to determine the direction of subsequent geometry elements.
Returns: Vertex
Inherited from SceneObject
name()
name(value: string): this
Sets a custom display name for this object, overriding the default type-based name.
| Parameter | Type | Description |
|---|---|---|
value | string | The display name to assign. |
reusable()
reusable(): this
Marks this object as reusable. Reusable objects retain their shapes when
consumed by features (e.g., extrude, revolve), allowing multiple features
to reference the same source geometry. Use remove(obj) to force-remove
shapes from a reusable object.
Methods
centered()
centered(value?: boolean): this
Controls whether the line is centered on the current position.
When true, the line is offset backward by half its length so that the
current position falls at its midpoint.
| Parameter | Type | Description |
|---|---|---|
value | boolean | true to center, false (default) to start from the current position. (optional) |