BRL-CAD
nurb_refine.c File Reference
#include "common.h"
#include "bio.h"
#include "vmath.h"
#include "nmg.h"
#include "raytrace.h"
#include "nurb.h"
Include dependency graph for nurb_refine.c:

Go to the source code of this file.

Functions

struct face_g_snurb * rt_nurb_s_refine (const struct face_g_snurb *srf, int dir, struct knot_vector *kv, struct resource *res)
 
struct edge_g_cnurb * rt_nurb_c_refine (const struct edge_g_cnurb *crv, struct knot_vector *kv)
 

Detailed Description

Refines a surface by inserting knots with respect to the row or columns of the control points resulting in the same surface with new control points.

Definition in file nurb_refine.c.

Function Documentation

struct face_g_snurb* rt_nurb_s_refine ( const struct face_g_snurb *  srf,
int  dir,
struct knot_vector *  kv,
struct resource res 
)

Returns a refined surface. The original surface is unmodified.

Definition at line 45 of file nurb_refine.c.

References bu_malloc(), rt_nurb_calc_oslo(), rt_nurb_free_oslo(), rt_nurb_kvcopy(), and rt_nurb_map_oslo().

Referenced by interpolate_data(), nmg_snurb_to_vlist(), rt_nurb_plot(), and rt_nurb_region_from_srf().

Here is the call graph for this function:

struct edge_g_cnurb* rt_nurb_c_refine ( const struct edge_g_cnurb *  crv,
struct knot_vector *  kv 
)

Definition at line 145 of file nurb_refine.c.

References rt_nurb_calc_oslo(), rt_nurb_free_oslo(), rt_nurb_map_oslo(), and rt_nurb_new_cnurb().

Here is the call graph for this function: