0027670: Visualization - avoid duplication of structures defining primitive array...
[occt.git] / src / Graphic3d / Graphic3d_ClipPlane.cxx
index 7b5b54c..46bff71 100755 (executable)
@@ -236,10 +236,7 @@ Handle(Graphic3d_AspectFillArea3d) Graphic3d_ClipPlane::CappingAspect() const
   anAspect->SetHatchStyle (myHatch);
   anAspect->SetInteriorStyle (myHatchOn ? Aspect_IS_HATCH : Aspect_IS_SOLID);
   anAspect->SetInteriorColor (myMaterial.Color());
-  if (!myTexture.IsNull())
-    anAspect->SetTextureMapOn();
-  else
-    anAspect->SetTextureMapOff();
-
+  anAspect->SetSuppressBackFaces (false);
+  anAspect->SetTextureMap (!myTexture.IsNull());
   return anAspect;
 }