phoenixyjll, It'd be better to utilize a method that doesn't require brep_debug be specifically aware of the ID_* primitive types in brep_conversion_tree(). It's find to be aware of ID_COMBINATIONS, but the other types create an object-specific binding that usually can be inferred. For example, you could make the ft_brep callback return -2 or set a null/empty brep object, checked within brep_conversion() or brep_conversion_tree().
Cheers! Sean On Jun 18, 2012, at 11:20 AM, [email protected] wrote: > Revision: 51210 > http://brlcad.svn.sourceforge.net/brlcad/?rev=51210&view=rev > Author: phoenixyjll > Date: 2012-06-18 15:20:25 +0000 (Mon, 18 Jun 2012) > Log Message: > ----------- > Add pnts to the ignore list. > > Modified Paths: > -------------- > brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp > > Modified: brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp > =================================================================== > --- brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp 2012-06-18 > 15:15:37 UTC (rev 51209) > +++ brlcad/trunk/src/librt/primitives/brep/brep_debug.cpp 2012-06-18 > 15:20:25 UTC (rev 51210) > @@ -1822,14 +1822,16 @@ > bu_free(tmpname, "char"); > break; > } > - if (BU_STR_EQUAL(intern->idb_meth->ft_name, "ID_HALF")) { > + if (BU_STR_EQUAL(intern->idb_meth->ft_name, "ID_HALF") || > + BU_STR_EQUAL(intern->idb_meth->ft_name, "ID_PNTS")) { > ret = wdb_export(wdbp, tmpname, intern->idb_ptr, > ID_HALF, local2mm); > if (ret) { > bu_log("ERROR: failure writing [%s] to disk\n", > tmpname); > bu_free(tmpname, "char"); > return ret; > } > - bu_log("%s is made.\n", tmpname); > + bu_log("The conversion of [%s] (type: %s) is ignored. > Implicit form remains.\n", > + tmpname, intern->idb_meth->ft_label); > bu_strlcpy(newtree->tr_l.tl_name, tmpname, > strlen(tmpname)+1); > bu_free(tmpname, "char"); > return ret; ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
