This structure provides unified access to the results of Matches() method in all sensitive entities, so that it defines a Depth (distance to the entity along picking ray) and a closest Point on entity.
More...
#include <SelectBasics_PickResult.hxx>
This structure provides unified access to the results of Matches() method in all sensitive entities, so that it defines a Depth (distance to the entity along picking ray) and a closest Point on entity.
◆ SelectBasics_PickResult() [1/2]
SelectBasics_PickResult::SelectBasics_PickResult |
( |
| ) |
|
|
inline |
Empty constructor defining an invalid result.
◆ SelectBasics_PickResult() [2/2]
Constructor with initialization.
◆ Depth()
Return depth along picking ray.
◆ DistToGeomCenter()
Standard_Real SelectBasics_PickResult::DistToGeomCenter |
( |
| ) |
const |
|
inline |
Return distance to geometry center (auxiliary value for comparing results).
◆ HasPickedPoint()
Return TRUE if Picked Point lying on detected entity was set.
◆ Invalidate()
void SelectBasics_PickResult::Invalidate |
( |
| ) |
|
|
inline |
◆ IsValid()
Return TRUE if result was been defined.
◆ Min()
Return closest result between two Pick Results according to Depth value.
◆ PickedPoint()
const gp_Pnt& SelectBasics_PickResult::PickedPoint |
( |
| ) |
const |
|
inline |
Return picked point lying on detected entity. WARNING! Point is defined in local coordinate system and should be translated into World System before usage!
◆ SetDepth()
Set depth along picking ray.
◆ SetDistToGeomCenter()
void SelectBasics_PickResult::SetDistToGeomCenter |
( |
Standard_Real |
theDistToCenter | ) |
|
|
inline |
Set distance to geometry center.
◆ SetPickedPoint()
void SelectBasics_PickResult::SetPickedPoint |
( |
const gp_Pnt & |
theObjPickedPnt | ) |
|
|
inline |
◆ SetSurfaceNormal() [1/2]
void SelectBasics_PickResult::SetSurfaceNormal |
( |
const gp_Vec & |
theNormal | ) |
|
|
inline |
Set surface normal at picked point.
◆ SetSurfaceNormal() [2/2]
void SelectBasics_PickResult::SetSurfaceNormal |
( |
const NCollection_Vec3< float > & |
theNormal | ) |
|
|
inline |
Set surface normal at picked point.
◆ SurfaceNormal()
Return (unnormalized) surface normal at picked point or zero vector if undefined. WARNING! Normal is defined in local coordinate system and should be translated into World System before usage!
The documentation for this struct was generated from the following file: