Salome HOME
Switch development flag to 1
[modules/hexablock.git] / src / HEXABLOCK / HexDocument_skin.cxx
index e896e80d9644d422846ae2d2253c4a05a37a35e6..39ce5e0b4809f6a95c54b3c186874575563bde78 100755 (executable)
@@ -1,6 +1,25 @@
 
 // C++ : Reordonnancement des faces
 
+// Copyright (C) 2009-2016  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
 #include "HexDocument.hxx"
 
 #include "HexVertex.hxx"
@@ -48,6 +67,13 @@ void Document::reorderQuads ()
                  makeSkin (quad);
               }
           }
+
+   for (elt = doc_first_elt[EL_QUAD]->next (); elt!=NULL; elt = elt->next())
+       if (elt!=NULL && elt->isHere())
+          {
+          Quad* quad = static_cast <Quad*> (elt);
+          quad->reorienter ();
+          }
 }
 // ========================================================= makeSkin
 void makeSkin (Quad* orig)