Difference between revisions of "User:Clouddrift/GSoC2014/Midterm"

From BRL-CAD
(Fix Debugs)
m (Fix Debugs)
Line 6: Line 6:
 
Due to the change of core NMG data structure, thousands of compiling errors are coming. I spend most time in these weeks to fix and test them. The statistics is as following:
 
Due to the change of core NMG data structure, thousands of compiling errors are coming. I spend most time in these weeks to fix and test them. The statistics is as following:
  
* RT_EXPORT extern struct model *nmg_mmr(void);
+
* struct model *nmg_mmr(void);
* RT_EXPORT extern struct nmgregion *nmg_mrsv(struct model *m);
+
* struct nmgregion *nmg_mrsv(struct model *m);
* RT_EXPORT extern int nmg_kr(struct nmgregion *r);
+
* int nmg_kr(struct nmgregion *r);
* RT_EXPORT extern void nmg_km(struct model *m);
+
* void nmg_km(struct model *m);
* RT_EXPORT extern void nmg_region_a(struct nmgregion *r, const struct bn_tol *tol);
+
* void nmg_region_a(struct nmgregion *r, const struct bn_tol *tol);
* RT_EXPORT extern struct model *nmg_find_model(const uint32_t *magic_p);
+
* struct model *nmg_find_model(const uint32_t *magic_p);
* RT_EXPORT extern struct vertex *nmg_find_pt_in_model(const struct model *m,
+
* struct vertex *nmg_find_pt_in_model(const struct model *m, point_t pt, struct bn_tol *tol);
    const point_t pt,
+
* void nmg_pr_m(const struct model *m);
    const struct bn_tol *tol);
+
* void nmg_pr_r(const struct nmgregion *r, *h);
* RT_EXPORT extern void nmg_pr_m(const struct model *m);
+
* int nmg_find_outer_and_void_shells(struct nmgregion *r, bu_ptbl ***shells, struct bn_tol *tol);
* RT_EXPORT extern void nmg_pr_r(const struct nmgregion *r,
+
* fastf_t nmg_region_area(const struct nmgregion *r);
      char *h);
+
* fastf_t nmg_model_area(const struct model *m);
* RT_EXPORT extern int nmg_find_outer_and_void_shells(struct nmgregion *r,
+
* struct model *nmg_mk_model_from_region(struct nmgregion *r, reindex);
    struct bu_ptbl ***shells,
+
* int nmg_mv_shell_to_region(struct shell *s, nmgregion *r);
    const struct bn_tol *tol);
+
* char *nmg_manifolds(struct model *m);
* RT_EXPORT extern fastf_t nmg_region_area(const struct nmgregion *r);
+
* void nmg_r_to_vlist(struct bu_list *vhead, struct nmgregion *r, int poly_markers);
* RT_EXPORT extern fastf_t nmg_model_area(const struct model *m);
+
* void nmg_m_to_vlist(struct bu_list *vhead,
* RT_EXPORT extern struct model *nmg_mk_model_from_region(struct nmgregion *r,
 
int reindex);
 
* RT_EXPORT extern int nmg_mv_shell_to_region(struct shell *s,
 
    struct nmgregion *r);
 
* RT_EXPORT extern char *nmg_manifolds(struct model *m);
 
* RT_EXPORT extern void nmg_r_to_vlist(struct bu_list *vhead,
 
    const struct nmgregion *r,
 
    int poly_markers);
 
* RT_EXPORT extern void nmg_m_to_vlist(struct bu_list *vhead,
 
 
    struct model *m,
 
    struct model *m,
 
    int poly_markers);
 
    int poly_markers);
* RT_EXPORT extern void nmg_pl_r(FILE *fp,
+
* void nmg_pl_r(FILE *fp,
 
      const struct nmgregion *r);
 
      const struct nmgregion *r);
* RT_EXPORT extern void nmg_pl_m(FILE *fp,
+
* void nmg_pl_m(FILE *fp,
 
      const struct model *m);
 
      const struct model *m);
* RT_EXPORT extern void nmg_vlblock_r(struct bn_vlblock *vbp,
+
* void nmg_vlblock_r(struct bn_vlblock *vbp,
 
    const struct nmgregion *r,
 
    const struct nmgregion *r,
 
    int fancy);
 
    int fancy);
* RT_EXPORT extern void nmg_vlblock_m(struct bn_vlblock *vbp,
+
* void nmg_vlblock_m(struct bn_vlblock *vbp,
 
    const struct model *m,
 
    const struct model *m,
 
    int fancy);
 
    int fancy);

Revision as of 01:03, 26 June 2014

Reorganize NMG Data Structure

Fix Debugs

Due to the change of core NMG data structure, thousands of compiling errors are coming. I spend most time in these weeks to fix and test them. The statistics is as following:

  • struct model *nmg_mmr(void);
  • struct nmgregion *nmg_mrsv(struct model *m);
  • int nmg_kr(struct nmgregion *r);
  • void nmg_km(struct model *m);
  • void nmg_region_a(struct nmgregion *r, const struct bn_tol *tol);
  • struct model *nmg_find_model(const uint32_t *magic_p);
  • struct vertex *nmg_find_pt_in_model(const struct model *m, point_t pt, struct bn_tol *tol);
  • void nmg_pr_m(const struct model *m);
  • void nmg_pr_r(const struct nmgregion *r, *h);
  • int nmg_find_outer_and_void_shells(struct nmgregion *r, bu_ptbl ***shells, struct bn_tol *tol);
  • fastf_t nmg_region_area(const struct nmgregion *r);
  • fastf_t nmg_model_area(const struct model *m);
  • struct model *nmg_mk_model_from_region(struct nmgregion *r, reindex);
  • int nmg_mv_shell_to_region(struct shell *s, nmgregion *r);
  • char *nmg_manifolds(struct model *m);
  • void nmg_r_to_vlist(struct bu_list *vhead, struct nmgregion *r, int poly_markers);
  • void nmg_m_to_vlist(struct bu_list *vhead,

struct model *m, int poly_markers);

  • void nmg_pl_r(FILE *fp,

const struct nmgregion *r);

  • void nmg_pl_m(FILE *fp,

const struct model *m);

  • void nmg_vlblock_r(struct bn_vlblock *vbp,

const struct nmgregion *r, int fancy);

  • void nmg_vlblock_m(struct bn_vlblock *vbp,

const struct model *m, int fancy);

  • RT_EXPORT extern void nmg_vshell(const struct bu_list *hp,

const struct nmgregion *r);

  • RT_EXPORT extern void nmg_vregion(const struct bu_list *hp,

const struct model *m);

  • RT_EXPORT extern void nmg_vmodel(const struct model *m);
  • RT_EXPORT extern int nmg_ck_closed_region(const struct nmgregion *r,

const struct bn_tol *tol);

  • RT_EXPORT extern void nmg_r_radial_check(const struct nmgregion *r,

const struct bn_tol *tol);

  • RT_EXPORT extern void nmg_visit_region(struct nmgregion *r,

const struct nmg_visit_handlers *htab, genptr_t state);

  • RT_EXPORT extern void nmg_visit_model(struct model *model,

const struct nmg_visit_handlers *htab, genptr_t state);

Conclusion