]> Creatis software - bbtk.git/commitdiff
#3507 BackFace in PolyDataToActor Box
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 27 Jul 2023 21:25:10 +0000 (23:25 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 27 Jul 2023 21:25:10 +0000 (23:25 +0200)
packages/vtk/src/bbvtkPolyDataToActor.cxx

index b49ff78174549c4c7b803ac9fdc2d8811a859316..870096b3e34b24c393182d7e7bd56e52b8007f9c 100644 (file)
@@ -205,7 +205,11 @@ printf("EED WARNNING!  PolyDataToActor::DoProcess  which is the default values o
 //EED 2023-07-28
             if (bbGetInputBackFaceColour().size()==3)
             {
-                backfaceproperty->SetColor(0.5, 0.5, 1);
+                double r,g,b;
+                r = bbGetInputBackFaceColour()[0];
+                g = bbGetInputBackFaceColour()[0];
+                b = bbGetInputBackFaceColour()[0];
+                backfaceproperty->SetColor(r, g, b);
                 backfaceproperty->SetOpacity( bbGetInputOpacity() );
                 vtkactor->SetBackfaceProperty( backfaceproperty );
             } else {