fix loft result orientation

This commit is contained in:
Stefan Tröger 2015-07-14 06:15:09 +02:00
parent ef11b75c79
commit e876d9aa81

View File

@ -135,8 +135,10 @@ App::DocumentObjectExecReturn *Loft::execute(void)
BRepOffsetAPI_ThruSections mkTS(false, Ruled.getValue(), Precision::Confusion()); BRepOffsetAPI_ThruSections mkTS(false, Ruled.getValue(), Precision::Confusion());
for(TopoDS_Wire& wire : wires) for(TopoDS_Wire& wire : wires) {
wire.Move(invObjLoc);
mkTS.AddWire(wire); mkTS.AddWire(wire);
}
mkTS.Build(); mkTS.Build();
if (!mkTS.IsDone()) if (!mkTS.IsDone())
@ -176,7 +178,6 @@ App::DocumentObjectExecReturn *Loft::execute(void)
result.Reverse(); result.Reverse();
} }
result.Move(invObjLoc);
AddSubShape.setValue(result); AddSubShape.setValue(result);
if(base.IsNull()) { if(base.IsNull()) {