Revision: 41198
http://brlcad.svn.sourceforge.net/brlcad/?rev=41198&view=rev
Author: brlcad
Date: 2010-10-31 00:53:06 +0000 (Sun, 31 Oct 2010)
Log Message:
-----------
remove dead code, and it's one of just two places in librt that directly calls
nmg routines (should decouple fully)
Modified Paths:
--------------
brlcad/trunk/src/librt/db_tree.c
Modified: brlcad/trunk/src/librt/db_tree.c
===================================================================
--- brlcad/trunk/src/librt/db_tree.c 2010-10-30 00:10:21 UTC (rev 41197)
+++ brlcad/trunk/src/librt/db_tree.c 2010-10-31 00:53:06 UTC (rev 41198)
@@ -1414,39 +1414,7 @@
return new;
case OP_NMG_TESS: {
-#if 0
- /* FIXME: something is wrong in here where we attempt to
- * get a full-fledged copy of a given nmgregion tree.
- */
- long **trans_tbl;
- struct model *m = nmg_mmr();
- struct shell *s;
- struct shell *dup_s;
- struct bn_tol tol;
-
- tol.magic = BN_TOL_MAGIC;
- tol.dist = 0.0005;
- tol.dist_sq = 0.05;
- tol.perp = 0.0;
- tol.para = 1.0;
-
- new->tr_d.td_r = BU_LIST_FIRST(nmgregion, &m->r_hd);
- for (BU_LIST_FOR(s, shell, &tp->tr_d.td_r->s_hd)) {
- dup_s = nmg_dup_shell(s, &trans_tbl, &tol);
- nmg_shell_a(dup_s, &tol);
- nmg_fix_normals(dup_s, &tol);
-
- /* it belongs to the new tree */
- BU_LIST_DEQUEUE(&dup_s->l);
- BU_LIST_APPEND(&new->tr_d.td_r->s_hd, &dup_s->l);
- dup_s->r_p = new->tr_d.td_r;
- }
- nmg_region_a(new->tr_d.td_r, &tol);
-
- /* bu_free((char *)trans_tbl, "translate table"); */
- /* nmg_pr_r(new->tr_d.td_r, "ORIGINAL REGION"); */
-#endif
- /* !!! fake "copy" .. lie */
+ /* FIXME: fake "copy" .. lie!!! */
new->tr_d.td_r = tp->tr_d.td_r;
new->tr_d.td_name = bu_strdup(tp->tr_d.td_name);
return new;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits