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

index 870096b3e34b24c393182d7e7bd56e52b8007f9c..4fbdafc40b38ce3055a7b7358269179e1621cb6b 100644 (file)
@@ -207,8 +207,8 @@ printf("EED WARNNING!  PolyDataToActor::DoProcess  which is the default values o
             {
                 double r,g,b;
                 r = bbGetInputBackFaceColour()[0];
-                g = bbGetInputBackFaceColour()[0];
-                b = bbGetInputBackFaceColour()[0];
+                g = bbGetInputBackFaceColour()[1];
+                b = bbGetInputBackFaceColour()[2];
                 backfaceproperty->SetColor(r, g, b);
                 backfaceproperty->SetOpacity( bbGetInputOpacity() );
                 vtkactor->SetBackfaceProperty( backfaceproperty );