fix loft result orientation
This commit is contained in:
parent
ef11b75c79
commit
e876d9aa81
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user