VRML to XCAFDoc reader is only available in OCCT 7.7.0+

This commit is contained in:
Alex Shvartzkop 2024-05-16 22:52:16 +03:00
parent 8fd12d8b7e
commit fd438cb8e0
1 changed files with 7 additions and 0 deletions

View File

@ -118,7 +118,10 @@
#include <GC_MakeCircle.hxx> #include <GC_MakeCircle.hxx>
#include <RWGltf_CafWriter.hxx> #include <RWGltf_CafWriter.hxx>
#if OCC_VERSION_HEX >= 0x070700
#include <VrmlAPI_CafReader.hxx> #include <VrmlAPI_CafReader.hxx>
#endif
#include <macros.h> #include <macros.h>
@ -2682,6 +2685,7 @@ bool STEP_PCB_MODEL::readSTEP( Handle( TDocStd_Document )& doc, const char* fnam
bool STEP_PCB_MODEL::readVRML( Handle( TDocStd_Document ) & doc, const char* fname ) bool STEP_PCB_MODEL::readVRML( Handle( TDocStd_Document ) & doc, const char* fname )
{ {
#if OCC_VERSION_HEX >= 0x070700
VrmlAPI_CafReader reader; VrmlAPI_CafReader reader;
RWMesh_CoordinateSystemConverter conv; RWMesh_CoordinateSystemConverter conv;
conv.SetInputLengthUnit( 2.54 ); conv.SetInputLengthUnit( 2.54 );
@ -2692,6 +2696,9 @@ bool STEP_PCB_MODEL::readVRML( Handle( TDocStd_Document ) & doc, const char* fna
return false; return false;
return true; return true;
#else
return false;
#endif
} }