searchForClosestPoint Method

Search the range tree for closest point(s) to spacePoint.

searchForClosestPoint(spacePoint: Point3d, maxDist?: number): undefined | CurveLocationDetail | CurveLocationDetail[]

@returns closest point detail(s) with detail.a set to the distance from spacePoint to detail.point

Parameter Type Description
spacePoint Point3d point to test
maxDist number collect points at no more than this distance from spacePoint. If undefined, return only the closest point.

Returns - undefined | CurveLocationDetail | CurveLocationDetail[]

closest point detail(s) with detail.a set to the distance from spacePoint to detail.point

Defined in

Last Updated: 14 November, 2024