Merge pull request #21713 from 3x380V/pd_fixes

PartDesign: Random fixes
This commit is contained in:
Chris Hennes
2025-09-29 10:54:46 -05:00
committed by GitHub
13 changed files with 466 additions and 266 deletions

View File

@@ -2697,8 +2697,15 @@ TopoShape& TopoShape::makeElementOffset2D(const TopoShape& shape,
if (shape.getShape().ShapeType() == TopAbs_COMPOUND) {
if (!intersection) {
// simply recursively process the children, independently
expandCompound(shape, shapesToProcess);
outputPolicy = SingleShapeCompoundCreationPolicy::forceCompound;
for(TopoDS_Iterator it(shape.getShape()); it.More() ; it.Next()) {
shapesToReturn.push_back(TopoShape(it.Value()).makeElementOffset2D(offset,
joinType,
fill,
allowOpenResult,
intersection,
op));
outputPolicy = SingleShapeCompoundCreationPolicy::forceCompound;
}
}
else {
// collect non-compounds from this compound for collective offset. Process other shapes