Part: fix typos in make* functions
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user