BRL-CAD
nurb_trim_util.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_trim_util.c:

Go to the source code of this file.

Functions

int rt_nurb_crv_in_range (struct edge_g_cnurb *crv, fastf_t u_min, fastf_t u_max, fastf_t v_min, fastf_t v_max)
 

Detailed Description

Trimming curve Utilities.

Definition in file nurb_trim_util.c.

Function Documentation

int rt_nurb_crv_in_range ( struct edge_g_cnurb *  crv,
fastf_t  u_min,
fastf_t  u_max,
fastf_t  v_min,
fastf_t  v_max 
)

Check to see if the curve control polygon wanders outside the parametric range given. This is useful if a trimming curve control polygon is outside but the evaluated curve is not. We will want to refine the curve so that it lies within the range; otherwise it breaks the surface evaluation.

Definition at line 46 of file nurb_trim_util.c.

References eval().

Here is the call graph for this function: