BRL-CAD
Loading...
Searching...
No Matches
Collaboration diagram for Non-Uniform Rational B-Spline:

Files

file  bspline.h
 

Data Structures

struct  rt_nurb_internal
 

Macros

#define RT_NURB_CK_MAGIC(_p)   BU_CKMAG(_p, RT_NURB_INTERNAL_MAGIC, "rt_nurb_internal");
 
#define RT_NURB_GET_CONTROL_POINT(_s, _u, _v)
 

Functions

int rt_nurb_to_brep (struct rt_db_internal *ip)
 

Detailed Description

Macro Definition Documentation

◆ RT_NURB_CK_MAGIC

#define RT_NURB_CK_MAGIC (   _p)    BU_CKMAG(_p, RT_NURB_INTERNAL_MAGIC, "rt_nurb_internal");

Definition at line 289 of file geom.h.

◆ RT_NURB_GET_CONTROL_POINT

#define RT_NURB_GET_CONTROL_POINT (   _s,
  _u,
  _v 
)
Value:
((_s)->ctl_points[ \
((_v)*(_s)->s_size[0]+(_u))*RT_NURB_EXTRACT_COORDS((_s)->pt_type)])
Definition dvec.h:74
#define RT_NURB_EXTRACT_COORDS(pt)
Definition nurb.h:77

Definition at line 290 of file geom.h.

Function Documentation

◆ rt_nurb_to_brep()

int rt_nurb_to_brep ( struct rt_db_internal ip)
extern

Convert a BSPLINE (ID_BSPLINE) rt_db_internal to a BREP (ID_BREP) rt_db_internal in-place.

The caller must already hold a loaded ID_BSPLINE internal (e.g. from rt_db_get_internal()). On success the internal is freed and replaced with an equivalent ID_BREP internal; the caller owns the result and must eventually call rt_db_free_internal().

Returns 0 on success, -1 on failure (the original internal is unchanged on failure).