closestPoint Method
Search for the curve point that is closest to the spacePoint.
- The CurveChainWithDistanceIndex invokes the base class CurvePrimitive method, which (via a handler) determines a CurveLocation detail among the children.
- The returned detail directly identifies fractional position along the CurveChainWithDistanceIndex and has pointer to an additional detail for the child curve.
closestPoint(spacePoint: Point3d, extend: VariantCurveExtendParameter): undefined | CurveLocationDetail
@returns a CurveLocationDetail structure that holds the details of the close point.
Parameter | Type | Description |
---|---|---|
spacePoint | Point3d | point in space |
extend | VariantCurveExtendParameter | true to extend the curve |
Returns - undefined | CurveLocationDetail
a CurveLocationDetail structure that holds the details of the close point.
Defined in
- curve/CurveChainWithDistanceIndex.ts Line 728
Last Updated: 28 October, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.