Part: Use TopoShape instead of TopoDS_Shape

This changes Attacher to use more our own TopoShape class which is more
information rich.
This commit is contained in:
Kacper Donat
2024-11-11 17:57:19 +01:00
parent 431f46a4fe
commit a71a67408b
3 changed files with 65 additions and 64 deletions

View File

@@ -79,8 +79,8 @@ TEST_F(AttacherTest, TestGetShapeType)
TEST_F(AttacherTest, TestGetInertialPropsOfShape)
{
auto& attacher = _boxes[1]->attacher();
std::vector<const TopoDS_Shape*> result;
auto faces = _boxes[1]->Shape.getShape().getSubShapes(TopAbs_FACE);
std::vector<const TopoShape*> result;
auto faces = _boxes[1]->Shape.getShape().getSubTopoShapes(TopAbs_FACE);
result.emplace_back(&faces[0]);
auto shapeType = attacher.getInertialPropsOfShape(result);
EXPECT_EQ(result.size(), 1);