Remove support to oldest occ <7.5 (#20084)
* remove support to oldest occ <7.5 The os ubuntu 22.04 not supported use occ 7.5.1. There is a lot of code implemented to support even older versions. The patch removes support for versions lower than occ 7.5.0 * . * move include library #pieterhijma change request : * removed deprecated functions get/setAngle functions has been removed with OCC 7.5
This commit is contained in:
@@ -69,22 +69,12 @@ int StepShape::read(const char* fileName)
|
||||
|
||||
|
||||
std::cout << "dump of step header:" << std::endl;
|
||||
#if OCC_VERSION_HEX < 0x070401
|
||||
Handle(Message_PrinterOStream) mstr = new Message_PrinterOStream();
|
||||
Handle(Message_Messenger) msg = new Message_Messenger(mstr);
|
||||
model->DumpHeader(msg);
|
||||
#else
|
||||
model->DumpHeader(std::cout);
|
||||
#endif
|
||||
|
||||
for (int nent = 1; nent <= model->NbEntities(); nent++) {
|
||||
Handle(Standard_Transient) entity = model->Entity(nent);
|
||||
std::cout << "label entity " << nent << ":";
|
||||
#if OCC_VERSION_HEX < 0x070401
|
||||
model->PrintLabel(entity, msg);
|
||||
#else
|
||||
model->PrintLabel(entity, std::cout);
|
||||
#endif
|
||||
std::cout << ";" << entity->DynamicType()->Name() << std::endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user