X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPolyDataNormals.cxx;h=46bc24a56656d27a216545591e1f3005b3df1908;hb=b794702fe475370a6b75eccd408139c84a341f06;hp=5c0ddab5284d55b2e98517e7c520b65d604c6dce;hpb=7adae3b62a9d3adf11e40486e130277d2ad04fdf;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx index 5c0ddab..46bc24a 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx @@ -39,6 +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) { @@ -144,6 +151,8 @@ void PolyDataNormals::bbUserSetDefaultValues() { // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 + bbSetInputType(0); + bbSetInputComputeType(0); bbSetInputIn(NULL); bbSetOutputOut( NULL ); }