From d644ca50265efd8540adef1ba469a4aee71337de Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Mon, 27 Mar 2023 14:42:26 +0200 Subject: [PATCH] #3495 Extrude normals conflict --- bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx index 1463602..b560cc9 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx @@ -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) { -- 2.45.1