nurb_knot.c File Reference

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

Include dependency graph for nurb_knot.c:

Go to the source code of this file.

Functions

void rt_nurb_kvknot (register struct knot_vector *new_knots, int order, fastf_t lower, fastf_t upper, int num, struct resource *res)
void rt_nurb_kvmult (struct knot_vector *new_kv, const struct knot_vector *kv, int num, register fastf_t val, struct resource *res)
void rt_nurb_kvgen (register struct knot_vector *kv, fastf_t lower, fastf_t upper, int num, struct resource *res)
void rt_nurb_kvmerge (struct knot_vector *new_knots, const struct knot_vector *kv1, const struct knot_vector *kv2, struct resource *res)
int rt_nurb_kvcheck (fastf_t val, register const struct knot_vector *kv)
void rt_nurb_kvextract (struct knot_vector *new_kv, register const struct knot_vector *kv, int lower, int upper, struct resource *res)
void rt_nurb_kvcopy (struct knot_vector *new_kv, register const struct knot_vector *old_kv, struct resource *res)
void rt_nurb_kvnorm (register struct knot_vector *kv)
int rt_nurb_knot_index (const struct knot_vector *kv, fastf_t k_value, int order)
void rt_nurb_gen_knot_vector (register struct knot_vector *new_knots, int order, fastf_t lower, fastf_t upper, struct resource *res)


Detailed Description

Various knot vector routines.

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_knot.c.


Function Documentation

void rt_nurb_kvknot register struct knot_vector new_knots,
int  order,
fastf_t  lower,
fastf_t  upper,
int  num,
struct resource res
 

Definition at line 56 of file nurb_knot.c.

References bu_malloc().

Here is the call graph for this function:

void rt_nurb_kvmult struct knot_vector new_kv,
const struct knot_vector kv,
int  num,
register fastf_t  val,
struct resource res
 

Definition at line 88 of file nurb_knot.c.

References bu_free(), bu_log(), bu_malloc(), knot_vector::k_size, knot_vector::knots, rt_bomb(), rt_nurb_kvcheck(), rt_nurb_kvmerge(), and rt_nurb_pr_kv().

Here is the call graph for this function:

void rt_nurb_kvgen register struct knot_vector kv,
fastf_t  lower,
fastf_t  upper,
int  num,
struct resource res
 

Definition at line 123 of file nurb_knot.c.

References bu_malloc().

Here is the call graph for this function:

int rt_nurb_kvcheck fastf_t  val,
register const struct knot_vector kv
 

Definition at line 177 of file nurb_knot.c.

void rt_nurb_kvextract struct knot_vector new_kv,
register const struct knot_vector kv,
int  lower,
int  upper,
struct resource res
 

Definition at line 197 of file nurb_knot.c.

References bu_malloc(), knot_vector::k_size, knot_vector::knots, and ptr.

Here is the call graph for this function:

void rt_nurb_kvcopy struct knot_vector new_kv,
register const struct knot_vector old_kv,
struct resource res
 

Definition at line 219 of file nurb_knot.c.

References bu_malloc(), knot_vector::k_size, and knot_vector::knots.

Here is the call graph for this function:

void rt_nurb_kvnorm register struct knot_vector kv  ) 
 

Definition at line 239 of file nurb_knot.c.

References NEAR_ZERO, and SMALL.

void rt_nurb_gen_knot_vector register struct knot_vector new_knots,
int  order,
fastf_t  lower,
fastf_t  upper,
struct resource res
 

Definition at line 305 of file nurb_knot.c.

References bu_malloc().

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