Part: fix typos in make* functions

This commit is contained in:
wmayer
2022-02-16 12:48:02 +01:00
parent 232a938a8b
commit 0c583fb7fa
8 changed files with 57 additions and 54 deletions

View File

@@ -193,7 +193,7 @@ Part::TopoShape ProfileBased::getProfileShape() const
std::vector<Part::TopoShape> shapes;
for (auto& sub : Profile.getSubValues(true))
shapes.emplace_back(shape.getSubShape(sub.c_str()));
shape = Part::TopoShape().makECompound(shapes);
shape = Part::TopoShape().makeCompound(shapes);
}
return shape;
}
@@ -216,16 +216,16 @@ TopoDS_Shape ProfileBased::getVerifiedFace(bool silent) const {
auto faces = shape.getSubTopoShapes(TopAbs_FACE);
if (faces.empty()) {
if (!shape.hasSubShape(TopAbs_WIRE))
shape = shape.makEWires();
shape = shape.makeWires();
if (shape.hasSubShape(TopAbs_WIRE))
shape = shape.makEFace(0, "Part::FaceMakerBullseye");
shape = shape.makeFace(0, "Part::FaceMakerBullseye");
else
err = "Cannot make face from profile";
}
else if (faces.size() == 1)
shape = faces.front();
else
shape = TopoShape().makECompound(faces);
shape = TopoShape().makeCompound(faces);
}
if (!err)
return shape.getShape();