mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-14 09:38:34 +05:00
Build GEOM with OCCT dev version.
This commit is contained in:
parent
090649639c
commit
7cd67a0174
@ -126,6 +126,10 @@
|
|||||||
|
|
||||||
#include <TColStd_HArray1OfByte.hxx>
|
#include <TColStd_HArray1OfByte.hxx>
|
||||||
|
|
||||||
|
#if OCC_VERSION_LARGE > 0x07040000
|
||||||
|
#include <Image_SupportedFormats.hxx>
|
||||||
|
#endif
|
||||||
|
|
||||||
// If the next macro is defined, autocolor feature works for all sub-shapes;
|
// If the next macro is defined, autocolor feature works for all sub-shapes;
|
||||||
// if it is undefined, autocolor feature works for groups only
|
// if it is undefined, autocolor feature works for groups only
|
||||||
#define GENERAL_AUTOCOLOR
|
#define GENERAL_AUTOCOLOR
|
||||||
@ -242,8 +246,12 @@ namespace
|
|||||||
const Handle(Graphic3d_TextureMap)& aTexture = aAISShape->Attributes()->ShadingAspect()->Aspect()->TextureMap();
|
const Handle(Graphic3d_TextureMap)& aTexture = aAISShape->Attributes()->ShadingAspect()->Aspect()->TextureMap();
|
||||||
if ( aTexture.IsNull() )
|
if ( aTexture.IsNull() )
|
||||||
continue;
|
continue;
|
||||||
|
#if OCC_VERSION_LARGE > 0x07040000
|
||||||
|
Handle(Image_SupportedFormats) aFormats = new Image_SupportedFormats();
|
||||||
|
const Handle(Image_PixMap)& aPixmap = aTexture->GetImage(aFormats);
|
||||||
|
#else
|
||||||
const Handle(Image_PixMap)& aPixmap = aTexture->GetImage();
|
const Handle(Image_PixMap)& aPixmap = aTexture->GetImage();
|
||||||
|
#endif
|
||||||
if ( aPixmap.IsNull() )
|
if ( aPixmap.IsNull() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user