]> Creatis software - bbtk.git/commitdiff
#3507 BackFace in PolyDataToActor Box
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 26 Jul 2023 15:49:36 +0000 (17:49 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Wed, 26 Jul 2023 15:49:36 +0000 (17:49 +0200)
kernel/src/bbtkBlackBox.cxx
packages/vtk/src/bbvtkPolyDataToActor.cxx

index ed75584f9fdf0d0bcc0a9a213c898a14b649663a..03a2054a4c35053b4adf5b2ac539c40a2f5abb58 100644 (file)
@@ -793,9 +793,6 @@ namespace bbtk
   }
   //=========================================================================
   
-   
-
-
 
   //=========================================================================
   IOStatus BlackBox::bbUpdateInputs()
index fefe8eb5887febd3cfed5989061091eaf8c4a70e..4a40dcd8c9359b498709850bb7c6cc4bd6d9cfb1 100644 (file)
@@ -197,11 +197,15 @@ printf("EED WARNNING!  PolyDataToActor::DoProcess  which is the default values o
                  vtkactor->GetProperty()->SetDiffuse(1);
                  vtkactor->GetProperty()->SetSpecular(0);
             }
-             vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
-             vtkactor->GetProperty()->SetColor( bbGetInputColour()[0],
-                            bbGetInputColour()[1],
-                            bbGetInputColour()[2] );
-             vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
+            vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
+            vtkactor->GetProperty()->SetColor( bbGetInputColour()[0], bbGetInputColour()[1], bbGetInputColour()[2] );
+            vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
+
+            vtkProperty *backfaceproperty = vtkProperty::New();
+            backfaceproperty->SetColor(0.5, 0.5, 1);
+            backfaceproperty->SetOpacity( bbGetInputOpacity() );
+            vtkactor->SetBackfaceProperty( backfaceproperty );
+
              if ( bbGetInputTransform()!=NULL )
              {
                 vtkactor->SetUserTransform( bbGetInputTransform() );