Revision: 49026
          http://brlcad.svn.sourceforge.net/brlcad/?rev=49026&view=rev
Author:   indianlarry
Date:     2012-01-24 11:28:13 +0000 (Tue, 24 Jan 2012)
Log Message:
-----------
Add face set reversing flags and functions

Modified Paths:
--------------
    brlcad/trunk/src/conv/step/ClosedShell.cpp
    brlcad/trunk/src/conv/step/ClosedShell.h
    brlcad/trunk/src/conv/step/ConnectedFaceSet.cpp
    brlcad/trunk/src/conv/step/ConnectedFaceSet.h

Modified: brlcad/trunk/src/conv/step/ClosedShell.cpp
===================================================================
--- brlcad/trunk/src/conv/step/ClosedShell.cpp  2012-01-24 11:10:52 UTC (rev 
49025)
+++ brlcad/trunk/src/conv/step/ClosedShell.cpp  2012-01-24 11:28:13 UTC (rev 
49026)
@@ -66,6 +66,12 @@
     TAB(level); std::cout << "Inherited Attributes:" << std::endl;
     ConnectedFaceSet::Print(level+1);
 }
+
+void
+ClosedShell::ReverseFaceSet() {
+    ConnectedFaceSet::ReverseFaceSet();
+}
+
 STEPEntity *
 ClosedShell::Create(STEPWrapper *sw, SCLP23(Application_instance) *sse) {
     Factory::OBJECTS::iterator i;

Modified: brlcad/trunk/src/conv/step/ClosedShell.h
===================================================================
--- brlcad/trunk/src/conv/step/ClosedShell.h    2012-01-24 11:10:52 UTC (rev 
49025)
+++ brlcad/trunk/src/conv/step/ClosedShell.h    2012-01-24 11:28:13 UTC (rev 
49026)
@@ -42,6 +42,7 @@
        bool Load(STEPWrapper *sw,SCLP23(Application_instance) *sse);
        virtual bool LoadONBrep(ON_Brep *brep);
        virtual void Print(int level);
+       virtual void ReverseFaceSet();
 
        //static methods
        static STEPEntity *Create(STEPWrapper *sw,SCLP23(Application_instance) 
*sse);

Modified: brlcad/trunk/src/conv/step/ConnectedFaceSet.cpp
===================================================================
--- brlcad/trunk/src/conv/step/ConnectedFaceSet.cpp     2012-01-24 11:10:52 UTC 
(rev 49025)
+++ brlcad/trunk/src/conv/step/ConnectedFaceSet.cpp     2012-01-24 11:28:13 UTC 
(rev 49026)
@@ -108,6 +108,14 @@
     TopologicalRepresentationItem::Print(level+1);
 }
 
+void
+ConnectedFaceSet::ReverseFaceSet() {
+       LIST_OF_FACES::iterator i;
+       for(i=cfs_faces.begin(); i != cfs_faces.end(); ++i) {
+               (*i)->ReverseFace();
+       }
+}
+
 STEPEntity *
 ConnectedFaceSet::Create(STEPWrapper *sw, SCLP23(Application_instance) *sse) {
     Factory::OBJECTS::iterator i;
@@ -136,11 +144,14 @@
     }
 
     LIST_OF_FACES::iterator i;
+    int facecnt = 0;
     for(i=cfs_faces.begin(); i != cfs_faces.end(); ++i) {
+       //if (facecnt == 5)
        if ( !(*i)->LoadONBrep(brep) ) {
            std::cerr << "Error: " << entityname << "::LoadONBrep() - Error 
loading openNURBS brep." << std::endl;
            return false;
        }
+       facecnt++;
     }
     return true;
 }

Modified: brlcad/trunk/src/conv/step/ConnectedFaceSet.h
===================================================================
--- brlcad/trunk/src/conv/step/ConnectedFaceSet.h       2012-01-24 11:10:52 UTC 
(rev 49025)
+++ brlcad/trunk/src/conv/step/ConnectedFaceSet.h       2012-01-24 11:28:13 UTC 
(rev 49026)
@@ -47,6 +47,7 @@
        bool Load(STEPWrapper *sw,SCLP23(Application_instance) *sse);
        virtual bool LoadONBrep(ON_Brep *brep);
        virtual void Print(int level);
+       virtual void ReverseFaceSet();
 
        //static methods
        static STEPEntity *Create(STEPWrapper *sw,SCLP23(Application_instance) 
*sse);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to