RhinoCommon API
PickContextPickFrustumTest Method (Mesh, PickContextMeshPickStyle, Point3d, Double, Double, PickContextMeshHitFlag, Int32) |
Utility for picking meshes
Namespace: Rhino.Input.Custom
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0

public bool PickFrustumTest( Mesh mesh, PickContextMeshPickStyle pickStyle, out Point3d hitPoint, out double depth, out double distance, out PickContextMeshHitFlag hitFlag, out int hitIndex )
Public Function PickFrustumTest ( mesh As Mesh, pickStyle As PickContextMeshPickStyle, <OutAttribute> ByRef hitPoint As Point3d, <OutAttribute> ByRef depth As Double, <OutAttribute> ByRef distance As Double, <OutAttribute> ByRef hitFlag As PickContextMeshHitFlag, <OutAttribute> ByRef hitIndex As Integer ) As Boolean
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@)"]
