Constructors
public PickContext()
Finalizer
~PickContext
#~PickContext()
Properties
True if GroupObjects should be added to the pick list
pick chord starts on near clipping plane and ends on far clipping plane.
True if the user had activated sub-object selection
This view can be a model view or a page view. When view is a page view, then you need to distinguish between the viewports MainViewport() and ActiveViewport(). When m_view is a model view, both MainViewport() and ActiveViewport() return the world view's viewport.
Methods
public void Dispose()
Fast test to check if a bounding box intersects a pick frustum.
Returns: False if bounding box is invalid or box does not intersect the pick frustum
Utility for picking meshes
public bool PickFrustumTest()
Mesh
mesh,
mesh to test
pickStyle,
mode used for pick test
out Point3d
hitPoint,
location returned here for point picks
out double
depth,
depth returned here for point picks LARGER values are NEARER to the camera. SMALLER values are FARTHER from the camera.
out double
distance,
planar distance returned here for point picks. SMALLER values are CLOSER to the pick point
out MeshHitFlag
hitFlag,
For point picks, How to interpret the hitIndex (vertex hit, edge hit, or face hit)
out int
hitIndex
index of vertex/edge/face that was hit. Use hitFlag to determine what this index corresponds to
Utility for picking meshes
public bool PickFrustumTest()
Mesh
mesh,
mesh to test
pickStyle,
mode used for pick test
out Point3d
hitPoint,
location returned here for point picks
out Point2d
hitSurfaceUV,
If the mesh has surface parameters, set to the surface parameters of the hit point
out Point2d
hitTextureCoordinate,
If the mesh has texture coordinates, set to the texture coordinate of the hit point. Note that the texture coordinates can be set in many different ways and this information is useless unless you know how the texture coordinates are set on this particular mesh.
out double
depth,
depth returned here for point picks LARGER values are NEARER to the camera. SMALLER values are FARTHER from the camera.
out double
distance,
planar distance returned here for point picks. SMALLER values are CLOSER to the pick point
out MeshHitFlag
hitFlag,
For point picks, How to interpret the hitIndex (vertex hit, edge hit, or face hit)
out int
hitIndex
index of vertex/edge/face that was hit. Use hitFlag to determine what this index corresponds to
Utility for picking 3d point
Returns: true if there is a hit
Utility for picking mesh vertices
Returns: indices of mesh topology vertices that were picked
Updates the clipping plane information in pick region. The SetClippingPlanes and View fields must be called before calling UpdateClippingPlanes().
public void UpdateClippingPlanes()