|
BRL-CAD
|
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) |
| #define RT_NURB_CK_MAGIC | ( | _p | ) | BU_CKMAG(_p, RT_NURB_INTERNAL_MAGIC, "rt_nurb_internal"); |
|
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).