Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic int ClosestPoints(
IEnumerable<Point3d> testPoints,
out Point3d[] closestPoints,
out SubDComponentParameter[] parameters,
double maximumDistance
)
Public Function ClosestPoints (
testPoints As IEnumerable(Of Point3d),
<OutAttribute> ByRef closestPoints As Point3d(),
<OutAttribute> ByRef parameters As SubDComponentParameter(),
maximumDistance As Double
) As Integer
Parameters
- testPoints
- Type: System.Collections.GenericIEnumerablePoint3d
The points to project onto this SubD. - closestPoints
- Type: Rhino.GeometryPoint3d
One point per test point. Entries where no closest point was found are
Unset.
- parameters
- Type: Rhino.GeometrySubDComponentParameter
One parameter per test point. Entries where no closest point was found are
Unset.
- maximumDistance
- Type: SystemDouble
If larger than 0, test points farther than this from the SubD get no
closest point. Otherwise this is ignored.
Return Value
Type:
Int32The number of closest points that were found.
See Also