|
IMeshClosestMeshPoint Method
|
Gets the point on the mesh that is closest to a given test point. Similar to the
ClosestPoint function except this returns a MeshPoint class which includes
extra information beyond just the location of the closest point.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax Point3 ClosestMeshPoint(
Point3 testPoint,
double maximumDistance
)
Function ClosestMeshPoint (
testPoint As Point3,
maximumDistance As Double
) As Point3
Point3 ClosestMeshPoint(
Point3 testPoint,
double maximumDistance
)
abstract ClosestMeshPoint :
testPoint : Point3 *
maximumDistance : float -> Point3
Parameters
- testPoint
- Type: Karamba.GeometryPoint3
[Missing <param name="testPoint"/> documentation for "M:Karamba.Geometry.IMesh.ClosestMeshPoint(Karamba.Geometry.Point3,System.Double)"]
- maximumDistance
- Type: SystemDouble
Optional upper bound on the distance from test point to the mesh.
If you are only interested in finding a point Q on the mesh when
testPoint.DistanceTo(Q) < maximumDistance,
then set maximumDistance to that value.
This parameter is ignored if you pass 0.0 for a maximumDistance.
Return Value
Type:
Point3closest point information on success
See Also