BRL-CAD
clip.c File Reference
#include "common.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "bu/log.h"
#include "bu/str.h"
#include "vmath.h"
#include "bn/adc.h"
#include "bn/clip.h"
Include dependency graph for clip.c:

Go to the source code of this file.

Macros

#define EPSILON   0.0001
 
#define CLIP_DISTANCE   100000000.0
 
#define INV_GED   0.00048828125
 

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...
 
void adc_model_to_adc_view (struct bview_adc_state *adcs, mat_t model2view, fastf_t amax)
 
void adc_grid_to_adc_view (struct bview_adc_state *adcs, mat_t model2view, fastf_t amax)
 
void adc_view_to_adc_grid (struct bview_adc_state *adcs, mat_t model2view)
 
void adc_reset (struct bview_adc_state *adcs, mat_t view2model, mat_t model2view)
 

Macro Definition Documentation

#define EPSILON   0.0001

Definition at line 37 of file clip.c.

Referenced by bn_ray_vclip().

#define CLIP_DISTANCE   100000000.0

Definition at line 38 of file clip.c.

Referenced by bn_ray_vclip().

#define INV_GED   0.00048828125

Definition at line 226 of file clip.c.

Referenced by adc_reset(), dm_draw_adc(), dm_draw_labels(), ged_adc(), and ged_calc_adc_dst().