Toponaming move makEFace as makeElementFace and dependencies

This commit is contained in:
Zheng, Lei
2024-01-17 20:38:50 -05:00
committed by bgbsww
parent 4acff3f66f
commit f4cc2df2bd
8 changed files with 543 additions and 22 deletions

View File

@@ -356,14 +356,14 @@ void FaceMakerExtrusion::Build()
if (mySourceShapes.empty())
throw Base::ValueError("No input shapes!");
if (mySourceShapes.size() == 1) {
inputShape = mySourceShapes[0];
inputShape = mySourceShapes[0].getShape();
}
else {
TopoDS_Builder builder;
TopoDS_Compound cmp;
builder.MakeCompound(cmp);
for (const TopoDS_Shape& sh : mySourceShapes) {
builder.Add(cmp, sh);
for (const auto &sh : mySourceShapes) {
builder.Add(cmp, sh.getShape());
}
inputShape = cmp;
}