Revision: 45869
http://brlcad.svn.sourceforge.net/brlcad/?rev=45869&view=rev
Author: brlcad
Date: 2011-08-10 03:39:09 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
relearning how to write an object from nothing
Modified Paths:
--------------
brlcad/trunk/src/proc-db/csgbrep.cpp
Modified: brlcad/trunk/src/proc-db/csgbrep.cpp
===================================================================
--- brlcad/trunk/src/proc-db/csgbrep.cpp 2011-08-10 03:27:49 UTC (rev
45868)
+++ brlcad/trunk/src/proc-db/csgbrep.cpp 2011-08-10 03:39:09 UTC (rev
45869)
@@ -47,6 +47,7 @@
write_out(struct rt_wdb* fp, struct rt_db_internal *ip, const char *name,
struct bn_tol *tol)
{
ON_Brep* brep = NULL;
+ struct directory *dp = NULL;
std::string bname = name;
bname += ".brep";
@@ -54,9 +55,11 @@
if (!fp || !ip || !name)
return;
- if (fp->dbip->dbi_fp) {
- rt_fwrite_internal(fp->dbip->dbi_fp, name, ip, 1.0);
- }
+ /* write the object in implicit form */
+/* dp = db_diradd(fp->dbip, name, ladd, len, flags, ptr); */
+ rt_db_put_internal(dp, fp->dbip, ip, &rt_uniresource);
+
+ /* write the object in brep/nurbs form */
brep = ON_Brep::New();
ip->idb_meth->ft_brep(&brep, ip, tol);
mk_brep(fp, bname.c_str(), brep);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits