]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx
Merge branch 'vtk9itk5wx3-macos' of ssh://git.creatis.insa-lyon.fr/creaVtk into vtk9i...
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPolyDataNormals.cxx
index fb43eb6030503e48eb3b62b3c34e673e8e997aee..b560cc95095dc6dabd1dbcac6dd7dc04355c61b4 100644 (file)
@@ -39,8 +39,14 @@ void PolyDataNormals::Process()
     if (bbGetInputIn()!=NULL)
     {
         vtkPolyDataNormals* normal = vtkPolyDataNormals::New();
+
+//      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)
         {