CurvePrimitiveType Type
CurvePrimitiveType = "arc" | "lineSegment" | "lineString" | "bsplineCurve" | "bezierCurve" | "transitionSpiral" | "curveChainWithDistanceIndex" | "interpolationCurve" | "akimaCurve"
Describes the concrete type of a CurvePrimitive. Each type name maps to a specific subclass and can be used for type-switching in conditional statements.
- "arc" => Arc3d
- "lineSegment" => LineSegment3d
- "lineString" => LineString3d
- "bsplineCurve" => BSplineCurve3dBase which is an intermediate class implemented by BSplineCurve3d and BSplineCurve3dH
- "bezierCurve" => BezierCurveBase which is an intermediate class implemented by BezierCurve3d and BezierCurve3dH
- "transitionSpiral" => TransitionSpiral3d
- "curveChainWithDistanceIndex" => CurveChainWithDistanceIndex
@see - Curve Collections learning article.
- AnyCurvePrimitive for a union type that supports compile-time type narrowing.
Defined in
- curve/CurvePrimitive.ts Line 56
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.