Part(toponaming): Remove support for OCCT 6.x
This commit is contained in:
committed by
Chris Hennes
parent
b56cdcde02
commit
334cc2f6b9
@@ -1502,7 +1502,7 @@ public:
|
||||
void mapSubElementsTo(std::vector<TopoShape>& shapes, const char* op = nullptr) const;
|
||||
bool hasPendingElementMap() const;
|
||||
|
||||
virtual std::string getElementMapVersion() const;
|
||||
std::string getElementMapVersion() const override;
|
||||
|
||||
void flushElementMap() const override;
|
||||
|
||||
|
||||
@@ -2062,16 +2062,11 @@ static const std::string& _getElementMapVersion()
|
||||
static std::string _ver;
|
||||
if (_ver.empty()) {
|
||||
std::ostringstream ss;
|
||||
unsigned occ_ver;
|
||||
// Stabilize the reported OCCT version: for any version of OpenCASCADE in the 7.x series,
|
||||
// report 7.2.0 as the version so that we aren't constantly inadvertently reporting differing
|
||||
// versions. This is retained for cross-compatibility with LinkStage3.
|
||||
if ((OCC_VERSION_HEX & 0xFF0000) == 0x070000) {
|
||||
occ_ver = 0x070200;
|
||||
}
|
||||
else {
|
||||
occ_ver = OCC_VERSION_HEX;
|
||||
}
|
||||
// Stabilize the reported OCCT version: report 7.2.0 as the version so that we aren't
|
||||
// constantly inadvertently reporting differing versions. This is retained for
|
||||
// cross-compatibility with LinkStage3 (which retains supporting code for OCCT 6.x,
|
||||
// removed here).
|
||||
unsigned occ_ver {0x070200};
|
||||
ss << OpCodes::Version << '.' << std::hex << occ_ver << '.';
|
||||
_ver = ss.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user