X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPolyDataNormals.cxx;h=46bc24a56656d27a216545591e1f3005b3df1908;hb=refs%2Fheads%2Fvtk9itk5wx3-macos;hp=fb43eb6030503e48eb3b62b3c34e673e8e997aee;hpb=0862c873f6ff725fe3b7d750ac7ede2a602a4d24;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx index fb43eb6..46bc24a 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx @@ -39,8 +39,13 @@ 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) {