mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +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>
|
||||
|
||||
#if OCC_VERSION_LARGE > 0x07040000
|
||||
#include <Image_SupportedFormats.hxx>
|
||||
#endif
|
||||
|
||||
// If the next macro is defined, autocolor feature works for all sub-shapes;
|
||||
// if it is undefined, autocolor feature works for groups only
|
||||
#define GENERAL_AUTOCOLOR
|
||||
@ -242,8 +246,12 @@ namespace
|
||||
const Handle(Graphic3d_TextureMap)& aTexture = aAISShape->Attributes()->ShadingAspect()->Aspect()->TextureMap();
|
||||
if ( aTexture.IsNull() )
|
||||
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();
|
||||
#endif
|
||||
if ( aPixmap.IsNull() )
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user