Click or drag to resize

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)
Syntax
public bool ClosestPoint(
	Point3 test_point,
	out Point3 pointOnModel,
	out Vector3 normalOnModel
)

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: Boolean
true if a closest model mesh-point exists
See Also