BRL-CAD
brep_hit Class Reference

Public Types

enum  hit_type {
  CLEAN_HIT, CLEAN_MISS, NEAR_HIT, NEAR_MISS,
  CRACK_HIT
}
 
enum  hit_direction { ENTERING, LEAVING }
 

Public Member Functions

 brep_hit (const ON_BrepFace &f, const ON_Ray &ray, const point_t p, const vect_t n, const pt2d_t _uv)
 
 brep_hit (const ON_BrepFace &f, fastf_t d, const ON_Ray &ray, const point_t p, const vect_t n, const pt2d_t _uv)
 
 brep_hit (const brep_hit &h)
 
brep_hitoperator= (const brep_hit &h)
 
bool operator== (const brep_hit &h) const
 
bool operator< (const brep_hit &h) const
 

Data Fields

const ON_BrepFace & face
 
fastf_t dist
 
point_t origin
 
point_t point
 
vect_t normal
 
pt2d_t uv
 
bool trimmed
 
bool closeToEdge
 
bool oob
 
enum hit_type hit
 
enum hit_direction direction
 
int m_adj_face_index
 
BBNode const * sbv
 

Detailed Description

Definition at line 526 of file brep.cpp.

Constructor & Destructor Documentation

brep_hit ( const ON_BrepFace &  f,
const ON_Ray &  ray,
const point_t  p,
const vect_t  n,
const pt2d_t  _uv 
)
inline

Definition at line 557 of file brep.cpp.

brep_hit ( const ON_BrepFace &  f,
fastf_t  d,
const ON_Ray &  ray,
const point_t  p,
const vect_t  n,
const pt2d_t  _uv 
)
inline

Definition at line 569 of file brep.cpp.

brep_hit ( const brep_hit h)
inline

Definition at line 578 of file brep.cpp.

References normal, origin, point, and uv.

Member Function Documentation

brep_hit& operator= ( const brep_hit h)
inline

Definition at line 588 of file brep.cpp.

References closeToEdge, direction, dist, face, hit, m_adj_face_index, normal, oob, origin, point, sbv, trimmed, and uv.

bool operator== ( const brep_hit h) const
inline

Definition at line 607 of file brep.cpp.

References dist, and NEAR_ZERO.

bool operator< ( const brep_hit h) const
inline

Definition at line 612 of file brep.cpp.

References dist.

Field Documentation

const ON_BrepFace& face

Definition at line 542 of file brep.cpp.

Referenced by operator=(), and rt_brep_shot().

fastf_t dist

Definition at line 543 of file brep.cpp.

Referenced by operator<(), operator=(), operator==(), and rt_brep_shot().

point_t origin

Definition at line 544 of file brep.cpp.

Referenced by brep_hit(), and operator=().

point_t point

Definition at line 545 of file brep.cpp.

Referenced by brep_hit(), operator=(), and rt_brep_shot().

vect_t normal

Definition at line 546 of file brep.cpp.

Referenced by brep_hit(), operator=(), and rt_brep_shot().

pt2d_t uv

Definition at line 547 of file brep.cpp.

Referenced by brep_hit(), operator=(), and rt_brep_shot().

bool trimmed

Definition at line 548 of file brep.cpp.

Referenced by operator=(), rt_brep_shot(), and utah_brep_intersect().

bool closeToEdge

Definition at line 549 of file brep.cpp.

Referenced by operator=(), rt_brep_shot(), and utah_brep_intersect().

bool oob

Definition at line 550 of file brep.cpp.

Referenced by operator=(), and rt_brep_shot().

enum hit_direction direction

Definition at line 552 of file brep.cpp.

Referenced by operator=(), rt_brep_shot(), and utah_brep_intersect().

int m_adj_face_index

Definition at line 553 of file brep.cpp.

Referenced by operator=(), rt_brep_shot(), and utah_brep_intersect().

BBNode const* sbv

Definition at line 555 of file brep.cpp.

Referenced by operator=(), rt_brep_shot(), and utah_brep_intersect().


The documentation for this class was generated from the following file: