mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-31 03:30:34 +05:00
PAL12520: Impossible to add a Sketcher Result in a Wire.
This commit is contained in:
parent
1c428833a9
commit
1d900ae5ce
@ -114,18 +114,26 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
|
|||||||
if (aShape_i.ShapeType() == TopAbs_EDGE) {
|
if (aShape_i.ShapeType() == TopAbs_EDGE) {
|
||||||
B.Add(aWire, TopoDS::Edge(aShape_i));
|
B.Add(aWire, TopoDS::Edge(aShape_i));
|
||||||
MW.Add(TopoDS::Edge(aShape_i));
|
MW.Add(TopoDS::Edge(aShape_i));
|
||||||
|
if (!MW.IsDone()) {
|
||||||
|
// check status after each edge/wire addition, because the final status
|
||||||
|
// can be OK even in case, when some edges/wires was not accepted.
|
||||||
|
isMWDone = false;
|
||||||
|
}
|
||||||
} else if (aShape_i.ShapeType() == TopAbs_WIRE) {
|
} else if (aShape_i.ShapeType() == TopAbs_WIRE) {
|
||||||
B.Add(aWire, TopoDS::Wire(aShape_i));
|
TopExp_Explorer exp (aShape_i, TopAbs_EDGE);
|
||||||
MW.Add(TopoDS::Wire(aShape_i));
|
for (; exp.More(); exp.Next()) {
|
||||||
|
B.Add(aWire, TopoDS::Edge(exp.Current()));
|
||||||
|
MW.Add(TopoDS::Edge(exp.Current()));
|
||||||
|
if (!MW.IsDone()) {
|
||||||
|
// check status after each edge/wire addition, because the final status
|
||||||
|
// can be OK even in case, when some edges/wires was not accepted.
|
||||||
|
isMWDone = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Standard_TypeMismatch::Raise
|
Standard_TypeMismatch::Raise
|
||||||
("Shape for wire construction is neither an edge nor a wire");
|
("Shape for wire construction is neither an edge nor a wire");
|
||||||
}
|
}
|
||||||
if (!MW.IsDone()) {
|
|
||||||
// check status after each edge/wire addition, because the final status
|
|
||||||
// can be OK even in case, when some edges/wires was not accepted.
|
|
||||||
isMWDone = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMWDone) {
|
if (isMWDone) {
|
||||||
|
Loading…
Reference in New Issue
Block a user