From: Eduardo DAVILA Date: Wed, 26 Jul 2023 15:49:36 +0000 (+0200) Subject: #3507 BackFace in PolyDataToActor Box X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0379902dd42009c462f390c28b51c106ce57c510;p=bbtk.git #3507 BackFace in PolyDataToActor Box --- diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index ed75584..03a2054 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -793,9 +793,6 @@ namespace bbtk } //========================================================================= - - - //========================================================================= IOStatus BlackBox::bbUpdateInputs() diff --git a/packages/vtk/src/bbvtkPolyDataToActor.cxx b/packages/vtk/src/bbvtkPolyDataToActor.cxx index fefe8eb..4a40dcd 100644 --- a/packages/vtk/src/bbvtkPolyDataToActor.cxx +++ b/packages/vtk/src/bbvtkPolyDataToActor.cxx @@ -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() );