Path.Area: fixed handling of shape with placement

This commit is contained in:
Zheng, Lei
2017-03-09 12:23:27 +08:00
committed by wmayer
parent 721a256268
commit 31e82f089c
2 changed files with 15 additions and 27 deletions

View File

@@ -114,9 +114,9 @@ App::DocumentObjectExecReturn *FeatureArea::execute(void)
if(myShapes.empty())
Shape.setValue(TopoDS_Shape());
else if(myShapes.size()==1)
Shape.setValue(myShapes.front());
else{
// compound is built even if there is only one shape to save the
// trouble of messing around with placement
BRep_Builder builder;
TopoDS_Compound compound;
builder.MakeCompound(compound);