Click or drag to resize

PickContextPickFrustumTest Method (Mesh, PickContextMeshPickStyle, Point3d, Double, Double, PickContextMeshHitFlag, Int32)

Utility for picking meshes

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public bool PickFrustumTest(
	Mesh mesh,
	PickContextMeshPickStyle pickStyle,
	out Point3d hitPoint,
	out double depth,
	out double distance,
	out PickContextMeshHitFlag hitFlag,
	out int hitIndex
)

Parameters

mesh
Type: Rhino.GeometryMesh
mesh to test
pickStyle
Type: Rhino.Input.CustomPickContextMeshPickStyle
mode used for pick test
hitPoint
Type: Rhino.GeometryPoint3d
location returned here for point picks
depth
Type: SystemDouble
depth returned here for point picks LARGER values are NEARER to the camera. SMALLER values are FARTHER from the camera.
distance
Type: SystemDouble
planar distance returned here for point picks. SMALLER values are CLOSER to the pick point
hitFlag
Type: Rhino.Input.CustomPickContextMeshHitFlag
For point picks, How to interpret the hitIndex (vertex hit, edge hit, or face hit)
hitIndex
Type: SystemInt32
index of vertex/edge/face that was hit. Use hitFlag to determine what this index corresponds to

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Rhino.Input.Custom.PickContext.PickFrustumTest(Rhino.Geometry.Mesh,Rhino.Input.Custom.PickContext.MeshPickStyle,Rhino.Geometry.Point3d@,System.Double@,System.Double@,Rhino.Input.Custom.PickContext.MeshHitFlag@,System.Int32@)"]

Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.6
See Also