BRL-CAD
nmg_brep.cpp File Reference
#include "common.h"
#include "raytrace.h"
#include "rtgeom.h"
#include "wdb.h"
#include "bn.h"
#include "bu/ptbl.h"
#include "bu/malloc.h"
Include dependency graph for nmg_brep.cpp:

Go to the source code of this file.

Functions

HIDDEN ON_Surface * sideSurface (const ON_3dPoint &SW, const ON_3dPoint &SE, const ON_3dPoint &NE, const ON_3dPoint &NW)
 
HIDDEN int nmg_brep_face (ON_Brep **b, const struct faceuse *fu, const struct bn_tol *tol, long *brepi)
 
void rt_nmg_brep (ON_Brep **b, const struct rt_db_internal *ip, const struct bn_tol *tol)
 

Detailed Description

b-rep support for NMG

Definition in file nmg_brep.cpp.

Function Documentation

HIDDEN ON_Surface* sideSurface ( const ON_3dPoint &  SW,
const ON_3dPoint &  SE,
const ON_3dPoint &  NE,
const ON_3dPoint &  NW 
)

Routine to create a planar NURBS surface from 4 points

Definition at line 39 of file nmg_brep.cpp.

Referenced by nmg_brep_face().

HIDDEN int nmg_brep_face ( ON_Brep **  b,
const struct faceuse *  fu,
const struct bn_tol tol,
long *  brepi 
)

Definition at line 54 of file nmg_brep.cpp.

References bn_3d_coplanar_obr(), bu_calloc(), bu_free(), BU_LIST_FIRST_MAGIC, BU_LIST_FOR, bu_log(), BU_PTBL_FOR, bu_ptbl_free(), lu, NMG_EDGEUSE_MAGIC, nmg_loop_is_ccw(), nmg_tabulate_face_g_verts(), orientation, sideSurface(), SMALL_FASTF, and VSET.

Referenced by rt_nmg_brep().

Here is the call graph for this function:

void rt_nmg_brep ( ON_Brep **  b,
const struct rt_db_internal ip,
const struct bn_tol tol 
)

Definition at line 226 of file nmg_brep.cpp.

References BU_LIST_FOR, bu_malloc(), rt_db_internal::idb_ptr, nmg_brep_face(), RT_CK_DB_INTERNAL, and s.

Here is the call graph for this function: