Remove overloaded method Graphic3d_AspectFillArea3d::SetTextureMap(bool)
authorkgv <kgv@opencascade.com>
Thu, 14 Jul 2016 11:55:42 +0000 (14:55 +0300)
committerkgv <kgv@opencascade.com>
Thu, 14 Jul 2016 11:55:42 +0000 (14:55 +0300)
src/Graphic3d/Graphic3d_AspectFillArea3d.hxx
src/Graphic3d/Graphic3d_ClipPlane.cxx

index 035b6bd928c7a231f48f503514288182ec373134..6c75858ad2741e63ae8aea256052dd7835d7d577 100644 (file)
@@ -154,9 +154,6 @@ public:
   //! Return true if texture mapping is enabled (false by default).
   bool TextureMapState() const { return myToMapTexture; }
 
-  //! Set texture mapping flag.
-  void SetTextureMap (bool theToEnable) { myToMapTexture = theToEnable; }
-
   //! Enable texture mapping (has no effect if texture is not set).
   void SetTextureMapOn() { myToMapTexture = true; }
 
index 46bff71527cee1e8d0c3253fc54cac4a630ca9fb..ffd4ed5d143d5b1e0bbed4ddcddc5b97976461af 100755 (executable)
@@ -237,6 +237,13 @@ Handle(Graphic3d_AspectFillArea3d) Graphic3d_ClipPlane::CappingAspect() const
   anAspect->SetInteriorStyle (myHatchOn ? Aspect_IS_HATCH : Aspect_IS_SOLID);
   anAspect->SetInteriorColor (myMaterial.Color());
   anAspect->SetSuppressBackFaces (false);
-  anAspect->SetTextureMap (!myTexture.IsNull());
+  if (!myTexture.IsNull())
+  {
+    anAspect->SetTextureMapOn();
+  }
+  else
+  {
+    anAspect->SetTextureMapOff();
+  }
   return anAspect;
 }