BRL-CAD

Routines for working with NMG Models. More...

Collaboration diagram for Model:

Files

file  model.h
 

Macros

#define NMG_CK_MODEL(_p)   NMG_CKMAG(_p, NMG_MODEL_MAGIC, "model")
 
#define GET_MODEL(p, m)   {NMG_GETSTRUCT(p, model); NMG_INCR_INDEX(p, m);}
 
#define FREE_MODEL(p)   NMG_FREESTRUCT(p, model)
 

Functions

struct modelnmg_mm (void)
 
struct modelnmg_mmr (void)
 
struct nmgregionnmg_mrsv (struct model *m)
 
void nmg_km (struct model *m)
 
void nmg_count_shell_kids (const struct model *m, size_t *total_wires, size_t *total_faces, size_t *total_points)
 
struct modelnmg_find_model (const uint32_t *magic_p)
 
void nmg_model_bb (point_t min_pt, point_t max_pt, const struct model *m)
 
struct vertexnmg_find_pnt_in_model (const struct model *m, const point_t pt, const struct bn_tol *tol)
 
void nmg_find_zero_length_edges (const struct model *m, struct bu_list *vlfree)
 
fastf_t nmg_model_area (const struct model *m)
 
void nmg_rebound (struct model *m, const struct bn_tol *tol)
 
struct modelnmg_mk_model_from_region (struct nmgregion *r, int reindex, struct bu_list *vlfree)
 
void nmg_mirror_model (struct model *m, struct bu_list *vlfree)
 
int nmg_kill_zero_length_edgeuses (struct model *m)
 
int nmg_edge_collapse (struct model *m, const struct bn_tol *tol, const fastf_t tol_coll, const fastf_t min_angle, struct bu_list *vlfree)
 
struct modelnmg_clone_model (const struct model *original)
 
void nmg_triangulate_model (struct model *m, struct bu_list *vlfree, const struct bn_tol *tol)
 
void nmg_dump_model (struct model *m)
 
char * nmg_manifolds (struct model *m)
 
int nmg_model_face_fuse (struct model *m, struct bu_list *vlfree, const struct bn_tol *tol)
 
int nmg_model_break_e_on_v (const uint32_t *magic_p, struct bu_list *vlfree, const struct bn_tol *tol)
 
int nmg_model_fuse (struct model *m, struct bu_list *vlfree, const struct bn_tol *tol)
 
void nmg_m_set_high_bit (struct model *m)
 
void nmg_m_reindex (struct model *m, long newindex)
 
void nmg_merge_models (struct model *m1, struct model *m2)
 
long nmg_find_max_index (const struct model *m)
 
const char * nmg_class_name (int class_no)
 

Detailed Description

Routines for working with NMG Models.

Macro Definition Documentation

◆ NMG_CK_MODEL

#define NMG_CK_MODEL (   _p)    NMG_CKMAG(_p, NMG_MODEL_MAGIC, "model")

Definition at line 38 of file model.h.

◆ GET_MODEL

#define GET_MODEL (   p,
 
)    {NMG_GETSTRUCT(p, model); NMG_INCR_INDEX(p, m);}

Definition at line 40 of file model.h.

◆ FREE_MODEL

#define FREE_MODEL (   p)    NMG_FREESTRUCT(p, model)

Definition at line 41 of file model.h.

Function Documentation

◆ nmg_mm()

struct model * nmg_mm ( void  )

◆ nmg_mmr()

struct model * nmg_mmr ( void  )

◆ nmg_mrsv()

struct nmgregion * nmg_mrsv ( struct model m)

◆ nmg_km()

void nmg_km ( struct model m)

◆ nmg_count_shell_kids()

void nmg_count_shell_kids ( const struct model m,
size_t *  total_wires,
size_t *  total_faces,
size_t *  total_points 
)

◆ nmg_find_model()

struct model * nmg_find_model ( const uint32_t *  magic_p)

◆ nmg_model_bb()

void nmg_model_bb ( point_t  min_pt,
point_t  max_pt,
const struct model m 
)

◆ nmg_find_pnt_in_model()

struct vertex * nmg_find_pnt_in_model ( const struct model m,
const point_t  pt,
const struct bn_tol tol 
)

◆ nmg_find_zero_length_edges()

void nmg_find_zero_length_edges ( const struct model m,
struct bu_list vlfree 
)

◆ nmg_model_area()

fastf_t nmg_model_area ( const struct model m)

◆ nmg_rebound()

void nmg_rebound ( struct model m,
const struct bn_tol tol 
)

◆ nmg_mk_model_from_region()

struct model * nmg_mk_model_from_region ( struct nmgregion r,
int  reindex,
struct bu_list vlfree 
)

◆ nmg_mirror_model()

void nmg_mirror_model ( struct model m,
struct bu_list vlfree 
)

◆ nmg_kill_zero_length_edgeuses()

int nmg_kill_zero_length_edgeuses ( struct model m)

◆ nmg_edge_collapse()

int nmg_edge_collapse ( struct model m,
const struct bn_tol tol,
const fastf_t  tol_coll,
const fastf_t  min_angle,
struct bu_list vlfree 
)

◆ nmg_clone_model()

struct model * nmg_clone_model ( const struct model original)

◆ nmg_triangulate_model()

void nmg_triangulate_model ( struct model m,
struct bu_list vlfree,
const struct bn_tol tol 
)

◆ nmg_dump_model()

void nmg_dump_model ( struct model m)

◆ nmg_manifolds()

char * nmg_manifolds ( struct model m)

◆ nmg_model_face_fuse()

int nmg_model_face_fuse ( struct model m,
struct bu_list vlfree,
const struct bn_tol tol 
)

◆ nmg_model_break_e_on_v()

int nmg_model_break_e_on_v ( const uint32_t *  magic_p,
struct bu_list vlfree,
const struct bn_tol tol 
)

◆ nmg_model_fuse()

int nmg_model_fuse ( struct model m,
struct bu_list vlfree,
const struct bn_tol tol 
)

◆ nmg_m_set_high_bit()

void nmg_m_set_high_bit ( struct model m)

◆ nmg_m_reindex()

void nmg_m_reindex ( struct model m,
long  newindex 
)

◆ nmg_merge_models()

void nmg_merge_models ( struct model m1,
struct model m2 
)

◆ nmg_find_max_index()

long nmg_find_max_index ( const struct model m)

◆ nmg_class_name()

const char * nmg_class_name ( int  class_no)