From 0379902dd42009c462f390c28b51c106ce57c510 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 26 Jul 2023 17:49:36 +0200 Subject: [PATCH] #3507 BackFace in PolyDataToActor Box --- kernel/src/bbtkBlackBox.cxx | 3 --- packages/vtk/src/bbvtkPolyDataToActor.cxx | 14 +++++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) 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() ); -- 2.47.1