|
VivinityMeshClosestPoint Method
|
Search for closest point on model-mesh and corresponding normal vector
when given an arbitrary point. A fe-model needs to exist before this
function gives correct results.
Namespace:
Karamba.GHopper.Geometry
Assembly:
karambaGH (in karambaGH.dll) Version: 1.15.0.0 (1.15.0.0)
Syntaxpublic bool ClosestPoint(
Point3 test_point,
out Point3 pointOnModel,
out Vector3 normalOnModel
)
Public Function ClosestPoint (
test_point As Point3,
<OutAttribute> ByRef pointOnModel As Point3,
<OutAttribute> ByRef normalOnModel As Vector3
) As Boolean
public:
bool ClosestPoint(
Point3 test_point,
[OutAttribute] Point3% pointOnModel,
[OutAttribute] Vector3% normalOnModel
)
member ClosestPoint :
test_point : Point3 *
pointOnModel : Point3 byref *
normalOnModel : Vector3 byref -> bool
Parameters
- test_point
- Type: Karamba.GeometryPoint3
point for which closest point on the mesh
of a model is desired - pointOnModel
- Type: Karamba.GeometryPoint3
point on model mesh which is closest to
given point - normalOnModel
- Type: Karamba.GeometryVector3
normal vector at model point closest to
given point
Return Value
Type:
Booleantrue if a closest model mesh-point exists
See Also