BRL-CAD
Collaboration diagram for Clipping:

Functions

int bn_lseg_clip (fastf_t *xp1, fastf_t *yp1, fastf_t *xp2, fastf_t *yp2, fastf_t clip_min, fastf_t clip_max)
 Clipping functions. More...
 
int bn_ray_vclip (vect_t a, vect_t b, fastf_t *min, fastf_t *max)
 Clip a ray against a rectangular parallelepiped (RPP) that has faces parallel to the coordinate planes (a clipping RPP). The RPP is defined by a minimum point and a maximum point. More...
 

Detailed Description

Function Documentation

int bn_lseg_clip ( fastf_t xp1,
fastf_t yp1,
fastf_t xp2,
fastf_t yp2,
fastf_t  clip_min,
fastf_t  clip_max 
)

Clipping functions.

Clip a 2-D integer line seg against the size of the display

Definition at line 61 of file clip.c.

int bn_ray_vclip ( vect_t  a,
vect_t  b,
fastf_t min,
fastf_t max 
)

Clip a ray against a rectangular parallelepiped (RPP) that has faces parallel to the coordinate planes (a clipping RPP). The RPP is defined by a minimum point and a maximum point.

Returns - 0 if ray does not hit RPP, !0 if ray hits RPP.

Implicit Return - if !0 was returned, "a" and "b" have been clipped to the RPP.

Definition at line 127 of file clip.c.

References CLIP_DISTANCE, EPSILON, and st.

Referenced by dl_plot().