Revision: 64356
http://sourceforge.net/p/brlcad/code/64356
Author: starseeker
Date: 2015-03-10 18:38:29 +0000 (Tue, 10 Mar 2015)
Log Message:
-----------
Flip faces if the brep is a subtraction.
Modified Paths:
--------------
brlcad/trunk/src/libbrep/shape_recognition.cpp
Modified: brlcad/trunk/src/libbrep/shape_recognition.cpp
===================================================================
--- brlcad/trunk/src/libbrep/shape_recognition.cpp 2015-03-10 15:12:17 UTC
(rev 64355)
+++ brlcad/trunk/src/libbrep/shape_recognition.cpp 2015-03-10 18:38:29 UTC
(rev 64356)
@@ -695,6 +695,15 @@
data->local_brep->ShrinkSurfaces();
data->local_brep->CullUnusedSurfaces();
+ /* If we're a subtraction, the B-Rep will be inside out */
+ if (data->params->bool_op == '-') {
+ for (int l = 0; l < data->local_brep->m_F.Count(); l++) {
+ ON_BrepFace &face = data->local_brep->m_F[l];
+ data->local_brep->FlipFace(face);
+ }
+ }
+
+
std::cout << "new brep done: " << bu_vls_addr(data->key) << "\n";
return 1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits