]> Creatis software - creaVtk.git/commitdiff
#3495 Extrude normals conflict
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 27 Mar 2023 12:42:26 +0000 (14:42 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 27 Mar 2023 12:42:26 +0000 (14:42 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx

index 1463602c72c6a87a0da00a52bdd1473a364bb43e..b560cc95095dc6dabd1dbcac6dd7dc04355c61b4 100644 (file)
@@ -39,8 +39,14 @@ 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)
         {