//! 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; }
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;
}