38#define NMG_CK_MODEL(_p) NMG_CKMAG(_p, NMG_MODEL_MAGIC, "model")
40#define GET_MODEL(p, m) {NMG_GETSTRUCT(p, model); NMG_INCR_INDEX(p, m);}
41#define FREE_MODEL(p) NMG_FREESTRUCT(p, model)
51 size_t *total_points);
55 const struct model *m);
64 int reindex,
struct bu_list *vlfree);
Header file for the BRL-CAD common definitions.
void nmg_model_bb(point_t min_pt, point_t max_pt, const struct model *m)
void nmg_find_zero_length_edges(const struct model *m, struct bu_list *vlfree)
void nmg_mirror_model(struct model *m, struct bu_list *vlfree)
void nmg_triangulate_model(struct model *m, struct bu_list *vlfree, const struct bn_tol *tol)
void nmg_rebound(struct model *m, const struct bn_tol *tol)
struct model * nmg_mk_model_from_region(struct nmgregion *r, int reindex, struct bu_list *vlfree)
int nmg_model_fuse(struct model *m, struct bu_list *vlfree, const struct bn_tol *tol)
void nmg_km(struct model *m)
void nmg_merge_models(struct model *m1, struct model *m2)
void nmg_m_reindex(struct model *m, long newindex)
struct model * nmg_find_model(const uint32_t *magic_p)
struct model * nmg_mmr(void)
void nmg_count_shell_kids(const struct model *m, size_t *total_wires, size_t *total_faces, size_t *total_points)
struct model * nmg_mm(void)
struct nmgregion * nmg_mrsv(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_kill_zero_length_edgeuses(struct model *m)
void nmg_m_set_high_bit(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 model * nmg_clone_model(const struct model *original)
void nmg_dump_model(struct model *m)
long nmg_find_max_index(const struct model *m)
fastf_t nmg_model_area(const struct model *m)
const char * nmg_class_name(int class_no)
char * nmg_manifolds(struct model *m)
struct vertex * nmg_find_pnt_in_model(const struct model *m, const point_t pt, const struct bn_tol *tol)
double fastf_t
fastest 64-bit (or larger) floating point type
fastf_t point_t[ELEMENTS_PER_POINT]
3-tuple point
NMG topological vertex - the simplest element of the topology system.
fundamental vector, matrix, quaternion math macros