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:
@@ -124,9 +124,7 @@ TEST_F(TopoShapeExpansionTest, makeElementCompoundEmptyShapesReturnsEmptyCompoun
|
||||
// Assert
|
||||
EXPECT_EQ(TopAbs_ShapeEnum::TopAbs_COMPOUND, topoShape.getShape().ShapeType());
|
||||
EXPECT_TRUE(topoShape.getMappedChildElements().empty());
|
||||
#if OCC_VERSION_HEX >= 0x070400
|
||||
EXPECT_EQ(0, topoShape.getShape().TShape()->NbChildren());
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_F(TopoShapeExpansionTest, makeElementCompoundTwoShapesGeneratesMap)
|
||||
@@ -1272,9 +1270,7 @@ TEST_F(TopoShapeExpansionTest, makeElementShellSingle)
|
||||
// Act
|
||||
TopoShape result = topoShape.makeElementShell(false, nullptr);
|
||||
// Assert
|
||||
#if OCC_VERSION_HEX >= 0x070400
|
||||
EXPECT_EQ(result.getShape().NbChildren(), 1);
|
||||
#endif
|
||||
EXPECT_EQ(result.countSubElements("Vertex"), 4);
|
||||
EXPECT_EQ(result.countSubElements("Edge"), 4);
|
||||
EXPECT_EQ(result.countSubElements("Face"), 1);
|
||||
@@ -1300,9 +1296,7 @@ TEST_F(TopoShapeExpansionTest, makeElementShellOpen)
|
||||
// Act
|
||||
TopoShape result = topoShape.makeElementShell(true, nullptr);
|
||||
// Assert
|
||||
#if OCC_VERSION_HEX >= 0x070400
|
||||
EXPECT_EQ(result.getShape().NbChildren(), 2);
|
||||
#endif
|
||||
EXPECT_EQ(result.countSubElements("Vertex"), 6);
|
||||
EXPECT_EQ(result.countSubElements("Edge"), 7);
|
||||
EXPECT_EQ(result.countSubElements("Face"), 2);
|
||||
@@ -1323,9 +1317,7 @@ TEST_F(TopoShapeExpansionTest, makeElementShellClosed)
|
||||
topoShape1.makeElementCompound(shapes, "D");
|
||||
// Assert
|
||||
TopoShape result = topoShape1.makeElementShell(false, "SH1");
|
||||
#if OCC_VERSION_HEX >= 0x070400
|
||||
EXPECT_EQ(result.getShape().NbChildren(), 6);
|
||||
#endif
|
||||
EXPECT_EQ(result.countSubElements("Vertex"), 8);
|
||||
EXPECT_EQ(result.countSubElements("Edge"), 12);
|
||||
EXPECT_EQ(result.countSubElements("Face"), 6);
|
||||
@@ -1369,9 +1361,7 @@ TEST_F(TopoShapeExpansionTest, makeElementShellFromWires)
|
||||
topoShape1.makeElementCompound(shapes, "D");
|
||||
// Assert
|
||||
TopoShape result = topoShape1.makeElementShellFromWires(shapes);
|
||||
#if OCC_VERSION_HEX >= 0x070400
|
||||
EXPECT_EQ(result.getShape().NbChildren(), 20); // Have a NbChildren method?
|
||||
#endif
|
||||
EXPECT_EQ(result.countSubElements("Vertex"), 8);
|
||||
EXPECT_EQ(result.countSubElements("Edge"), 32);
|
||||
EXPECT_EQ(result.countSubElements("Face"), 20);
|
||||
|
||||
Reference in New Issue
Block a user