Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58bfedf
)
[bos #28855] EDF 24963 - multi-explode.
author
jfa
<jfa@opencascade.com>
Thu, 3 Feb 2022 15:34:59 +0000
(18:34 +0300)
committer
jfa
<jfa@opencascade.com>
Thu, 3 Feb 2022 15:34:59 +0000
(18:34 +0300)
src/GEOMClient/GEOM_Client.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMClient/GEOM_Client.cxx
b/src/GEOMClient/GEOM_Client.cxx
index fe12c448273c1cc9e5d4510cfe7ed605a8ccd4f0..53f92b453bd18d9c01e5cfcf81a1567a4b5314c6 100644
(file)
--- a/
src/GEOMClient/GEOM_Client.cxx
+++ b/
src/GEOMClient/GEOM_Client.cxx
@@
-254,9
+254,10
@@
TopoDS_Shape GEOM_Client::GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_p
subShapes.insert( subShapes.end(), anIndices.cbegin(), anIndices.cend() );
}
- /* Case of only one subshape */
- if ( list->length() == 1 && list[0] > 1 ) {
- S = subShapes[list[0]-1];
+ /* Case of only one subshape, excluding groups of one main shape */
+ if ( list->length() == 1 && !(aShape->GetType() == 37 && list[0] == 1) ) {
+ if (list[0] > 0)
+ S = subShapes[list[0]-1];
}
else {
BRep_Builder B;