]> Creatis software - creaVtk.git/commitdiff
#3495 Extrude normals conflict
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Sat, 22 Oct 2022 01:58:19 +0000 (03:58 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Sat, 22 Oct 2022 01:58:19 +0000 (03:58 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkLinearExtrusionFilter.cxx

index 534d0029101cb8ca4cce1d167bf095e7721817ac..671b2645d49df41b4253a31fa6315bfd42168602 100644 (file)
@@ -41,7 +41,6 @@ void CreateMeshFromPoints::Process()
                        printf("Warnning! CreateMeshFromPoints::Process: List of points X Y Z  and LstIndexes is not correct\n");
                        bbSetOutputOut(NULL);
                } else  {
-            printf("EED CreateMeshFromPoints::Process  initial=%d  final=%d\n" ,  lstIndexs[0] ,   lstIndexs[  lstIndexs.size()-1 ] );
                        int ii,sizeSegment1,sizeSegment2;
                        int endSegment;
 //                     vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New();
index 0c16df888c6381f2b1b20f72c68cbb381ecdd69a..f254fc431b509508fe0e8644ffef076e2c12dbe8 100644 (file)
@@ -53,7 +53,7 @@ void LinearExtrusionFilter::Process()
         } else {
             extrude->SetVector(1, 0, 0);
         }
-        extrude->SetScaleFactor( bbGetInputScalarFactor() );
+        extrude->SetScaleFactor( bbGetInputScalarFactor() * (-1) );
         extrude->Update();
         triangleFilter->SetInputData( extrude->GetOutput() );
         triangleFilter->Update( );