nurb_flat.c File Reference
#include "common.h"
#include <math.h>
#include "bio.h"
#include "vmath.h"
#include "raytrace.h"
#include "nurb.h"
Include dependency graph for nurb_flat.c:

Go to the source code of this file.


int rt_nurb_s_flat (struct face_g_snurb *srf, fastf_t epsilon)
fastf_t rt_nurb_crv_flat (fastf_t *crv, int size, int pt_type)

Detailed Description

Tests the NURB surface to see if its flat depending on the epsilon passed.

Definition in file nurb_flat.c.

Function Documentation

int rt_nurb_s_flat ( struct face_g_snurb *  srf,
fastf_t  epsilon 

Definition at line 44 of file nurb_flat.c.

References bu_free(), bu_malloc(), FMAX, and rt_nurb_crv_flat().

Here is the call graph for this function:

fastf_t rt_nurb_crv_flat ( fastf_t crv,
int  size,
int  pt_type 

Definition at line 198 of file nurb_flat.c.

References FMAX, and SQRT_SMALL_FASTF.

Referenced by rt_nurb_s_flat().