mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-05 07:34:16 +05:00
Return back workaround for embedded compounds since the OCCT patch does not work in all cases (e.g. it fails when exporting / importing single edge).
This commit is contained in:
parent
56c5e93e6b
commit
055a706162
@ -131,6 +131,21 @@ extern "C"
|
|||||||
/* For a single entity */
|
/* For a single entity */
|
||||||
else if (nbr == 1 && nbs == 1) {
|
else if (nbr == 1 && nbs == 1) {
|
||||||
aResShape = aReader.Shape(1);
|
aResShape = aReader.Shape(1);
|
||||||
|
// ATTENTION: this is a workaround for mantis issue 0020442 remark 0010776
|
||||||
|
// It should be removed after patching OCCT for bug OCC22436
|
||||||
|
// (fix for OCCT is expected in service pack next to OCCT6.3sp12)
|
||||||
|
if (aResShape.ShapeType() == TopAbs_COMPOUND) {
|
||||||
|
int nbSub1 = 0;
|
||||||
|
TopoDS_Shape currShape;
|
||||||
|
TopoDS_Iterator It (aResShape, Standard_True, Standard_True);
|
||||||
|
for (; It.More(); It.Next()) {
|
||||||
|
nbSub1++;
|
||||||
|
currShape = It.Value();
|
||||||
|
}
|
||||||
|
if (nbSub1 == 1)
|
||||||
|
aResShape = currShape;
|
||||||
|
}
|
||||||
|
// END workaround
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user