X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPolyDataNormals.cxx;h=46bc24a56656d27a216545591e1f3005b3df1908;hb=04f142810003e7e5b286c5a75ed26e25e55dfcc5;hp=e36998924ed266a6a1ebef233de5849ce13297e6;hpb=797e2ddbfbbf4794b08653db4e8ba0b63e077b33;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx index e369989..46bc24a 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.cxx @@ -36,12 +36,16 @@ void PolyDataNormals::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <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) { @@ -138,8 +142,8 @@ void PolyDataNormals::Process() } else { bbSetOutputOut( NULL ); }// if In - } + //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== @@ -147,35 +151,34 @@ 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 ); } + //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void PolyDataNormals::bbUserInitializeProcessing() { - // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers -// if any - - +// if any } + //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void PolyDataNormals::bbUserFinalizeProcessing() { - // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any - -} } -// EO namespace bbcreaVtk + +}// EO namespace bbcreaVtk