BRL-CAD
poly_brep.cpp File Reference
#include "common.h"
#include "raytrace.h"
#include "rtgeom.h"
#include "nmg.h"
#include "brep.h"
Include dependency graph for poly_brep.cpp:

Go to the source code of this file.

Functions

void rt_pg_tess (struct nmgregion **r, struct model *m, struct rt_db_internal *ip, const struct rt_tess_tol *ttol, const struct bn_tol *tol)
 
void rt_nmg_brep (ON_Brep **bi, struct rt_db_internal *ip, const struct bn_tol *tol)
 
void rt_pg_brep (ON_Brep **b, const struct rt_db_internal *ip, const struct bn_tol *tol)
 

Detailed Description

Convert a poly to an nmg, and thus to b-rep form

Definition in file poly_brep.cpp.

Function Documentation

void rt_pg_tess ( struct nmgregion **  r,
struct model *  m,
struct rt_db_internal ip,
const struct rt_tess_tol ttol,
const struct bn_tol tol 
)

Definition at line 567 of file poly.c.

References bu_free(), BU_LIST_FIRST, bu_log(), bu_malloc(), rt_db_internal::idb_ptr, nmg_calc_face_g(), nmg_cmface(), nmg_find_pt_in_shell(), nmg_fix_normals(), nmg_mrsv(), nmg_pr_fu_briefly(), nmg_region_a(), nmg_vertex_gv(), RT_CK_DB_INTERNAL, and s.

Referenced by rt_pg_brep().

Here is the call graph for this function:

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

Referenced by rt_pg_brep().

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

Definition at line 40 of file poly_brep.cpp.

References rt_tess_tol::abs, BU_ALLOC, bu_free(), rt_db_internal::idb_ptr, nmg_mm(), rt_tess_tol::norm, rt_tess_tol::rel, RT_DB_INTERNAL_INIT, rt_nmg_brep(), and rt_pg_tess().

Here is the call graph for this function: