]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx
#3513 CleanMeshWithPatch
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPolyDataNormals.cxx
index 1463602c72c6a87a0da00a52bdd1473a364bb43e..46bc24a56656d27a216545591e1f3005b3df1908 100644 (file)
@@ -39,8 +39,13 @@ void PolyDataNormals::Process()
     if (bbGetInputIn()!=NULL)
     {
         vtkPolyDataNormals* normal = vtkPolyDataNormals::New();
-        normal->SetAutoOrientNormals(false);
-        normal->SetConsistency(false);
+//      Automatically change the orientation fo normals, put it from inside to outside
+//        normal->SetAutoOrientNormals(true);
+        normal->SetConsistency(true);
+//      this force to not change the order of triangles, keep the original order        
+//        normal->SetAutoOrientNormals(false);
+//        normal->SetConsistency(false);
+
         normal->SetInputData( bbGetInputIn() );
         if (bbGetInputComputeType()==0)
         {