Skip to content
Snippets Groups Projects
Commit ca6b87ab authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix issue #323: extrusion of points would not return the correct entities

parent 74bea224
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ set(SRC ...@@ -24,6 +24,7 @@ set(SRC
onelabUtils.cpp onelabUtils.cpp
GamePad.cpp GamePad.cpp
GmshRemote.cpp GmshRemote.cpp
GmshAPI.cpp
) )
if(ENABLE_ONELAB AND NOT ENABLE_ONELAB2) if(ENABLE_ONELAB AND NOT ENABLE_ONELAB2)
......
...@@ -1941,15 +1941,16 @@ bool OCC_Internals::_extrude(int mode, ...@@ -1941,15 +1941,16 @@ bool OCC_Internals::_extrude(int mode,
_multiBind(result, -1, outDimTags, true, true); _multiBind(result, -1, outDimTags, true, true);
// return entities in the same order as the built-in kernel extrusion // return entities in the same order as the built-in kernel extrusion
if(dim >= 1 && dim <= 3 && top.size() == inDimTags.size() && if(dim >= 1 && dim <= 3 &&
top.size() == body.size() && top.size() == lateral.size()){ top.size() == inDimTags.size() && top.size() == body.size()){
outDimTags.clear(); outDimTags.clear();
for(unsigned int i = 0; i < top.size(); i++){ for(unsigned int i = 0; i < top.size(); i++){
if(_isBound(dim - 1, top[i])) if(_isBound(dim - 1, top[i]))
outDimTags.push_back(std::pair<int, int>(dim - 1, _find(dim - 1, top[i]))); outDimTags.push_back(std::pair<int, int>(dim - 1, _find(dim - 1, top[i])));
if(_isBound(dim, body[i])) if(_isBound(dim, body[i]))
outDimTags.push_back(std::pair<int, int>(dim, _find(dim, body[i]))); outDimTags.push_back(std::pair<int, int>(dim, _find(dim, body[i])));
if(CTX::instance()->geom.extrudeReturnLateral){ if(CTX::instance()->geom.extrudeReturnLateral &&
top.size() == lateral.size()){
for(unsigned int j = 0; j < lateral[i].size(); j++){ for(unsigned int j = 0; j < lateral[i].size(); j++){
if(_isBound(dim - 1, lateral[i][j])) if(_isBound(dim - 1, lateral[i][j]))
outDimTags.push_back outDimTags.push_back
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment