nurb_bound.c File Reference

#include "common.h"
#include <stdio.h>
#include "machine.h"
#include "vmath.h"
#include "raytrace.h"
#include "nurb.h"

Include dependency graph for nurb_bound.c:

Go to the source code of this file.

Defines

#define NEAR_ZERO(val, epsilon)   ( ((val) > -epsilon) && ((val) < epsilon) )
#define INFINITY   (1.0e20)

Functions

int rt_nurb_s_bound (struct face_g_snurb *srf, fastf_t *bmin, fastf_t *bmax)
int rt_nurb_c_bound (struct edge_g_cnurb *crv, fastf_t *bmin, fastf_t *bmax)
int rt_nurb_s_check (register struct face_g_snurb *srf)
int rt_nurb_c_check (register struct edge_g_cnurb *crv)


Detailed Description

Find the bounding box for the a NURB surface.

Author - Paul R. Stay

Source - SECAD/VLD Computing Consortium, Bldg 394 The U.S. Army Ballistic Research Laboratory Aberdeen Proving Ground, Maryland 21005

Definition in file nurb_bound.c.


Define Documentation

#define NEAR_ZERO val,
epsilon   )     ( ((val) > -epsilon) && ((val) < epsilon) )
 

Definition at line 56 of file nurb_bound.c.

#define INFINITY   (1.0e20)
 

Definition at line 59 of file nurb_bound.c.


Function Documentation

int rt_nurb_s_bound struct face_g_snurb srf,
fastf_t bmin,
fastf_t bmax
 

Definition at line 69 of file nurb_bound.c.

References bu_log(), face_g_snurb::ctl_points, H, HDIVIDE, HPRINT, INFINITY, NEAR_ZERO, face_g_snurb::pt_type, RT_NURB_EXTRACT_COORDS, RT_NURB_IS_PT_RATIONAL, RT_NURB_SPLIT_COL, RT_NURB_SPLIT_ROW, face_g_snurb::s_size, SMALL, and VMINMAX.

Here is the call graph for this function:

int rt_nurb_c_bound struct edge_g_cnurb crv,
fastf_t bmin,
fastf_t bmax
 

Definition at line 110 of file nurb_bound.c.

References bu_log(), edge_g_cnurb::c_size, edge_g_cnurb::ctl_points, H, HDIVIDE, HPRINT, INFINITY, NEAR_ZERO, edge_g_cnurb::pt_type, RT_NURB_EXTRACT_COORDS, RT_NURB_IS_PT_RATIONAL, SMALL, and VMINMAX.

Here is the call graph for this function:

int rt_nurb_s_check register struct face_g_snurb srf  ) 
 

Definition at line 156 of file nurb_bound.c.

References bu_log(), INFINITY, NEAR_ZERO, RT_NURB_SPLIT_COL, and RT_NURB_SPLIT_ROW.

Here is the call graph for this function:

int rt_nurb_c_check register struct edge_g_cnurb crv  ) 
 

Definition at line 184 of file nurb_bound.c.

References bu_log(), INFINITY, and NEAR_ZERO.

Here is the call graph for this function:


Generated on Mon Sep 18 01:25:08 2006 for BRL-CAD by  doxygen 1.4.6