mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
Remove overloaded method Graphic3d_AspectFillArea3d::SetTextureMap(bool)
This commit is contained in:
parent
b647266461
commit
b2fbf11a4f
@ -154,9 +154,6 @@ public:
|
|||||||
//! Return true if texture mapping is enabled (false by default).
|
//! Return true if texture mapping is enabled (false by default).
|
||||||
bool TextureMapState() const { return myToMapTexture; }
|
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).
|
//! Enable texture mapping (has no effect if texture is not set).
|
||||||
void SetTextureMapOn() { myToMapTexture = true; }
|
void SetTextureMapOn() { myToMapTexture = true; }
|
||||||
|
|
||||||
|
@ -237,6 +237,13 @@ Handle(Graphic3d_AspectFillArea3d) Graphic3d_ClipPlane::CappingAspect() const
|
|||||||
anAspect->SetInteriorStyle (myHatchOn ? Aspect_IS_HATCH : Aspect_IS_SOLID);
|
anAspect->SetInteriorStyle (myHatchOn ? Aspect_IS_HATCH : Aspect_IS_SOLID);
|
||||||
anAspect->SetInteriorColor (myMaterial.Color());
|
anAspect->SetInteriorColor (myMaterial.Color());
|
||||||
anAspect->SetSuppressBackFaces (false);
|
anAspect->SetSuppressBackFaces (false);
|
||||||
anAspect->SetTextureMap (!myTexture.IsNull());
|
if (!myTexture.IsNull())
|
||||||
|
{
|
||||||
|
anAspect->SetTextureMapOn();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
anAspect->SetTextureMapOff();
|
||||||
|
}
|
||||||
return anAspect;
|
return anAspect;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user