X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_ConvToQuadOp.cxx;h=70b7493cbcbe65f005424027f3a96c6157f0da58;hp=42dad5775bddadc227098f0551b34c656aa2cbee;hb=b0a908c0d20341651771d0249fb10882f54b2aad;hpb=7aebb99e42c6b0c3c056a5eecb0f29033db2231a diff --git a/src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx b/src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx index 42dad5775..70b7493cb 100644 --- a/src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx +++ b/src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -330,11 +330,14 @@ SMESHGUI_ConvToQuadOp::DestinationMesh( const SMESH::SMESH_IDSource_var& idSourc { SMESH::long_array_var nbElemOfType = idSource->GetMeshInfo(); - bool hasBiQuad = ( nbElemOfType[SMDSEntity_BiQuad_Quadrangle ] || + bool hasBiQuad = ( nbElemOfType[SMDSEntity_BiQuad_Triangle ] || + nbElemOfType[SMDSEntity_BiQuad_Quadrangle ] || nbElemOfType[SMDSEntity_TriQuad_Hexa ] ); - bool hasLinStruct = ( nbElemOfType[SMDSEntity_Quadrangle ] || + bool hasLinBiQuad = ( nbElemOfType[SMDSEntity_Triangle ] || + nbElemOfType[SMDSEntity_Quadrangle ] || nbElemOfType[SMDSEntity_Hexa ] ); - bool hasQuadStruct = ( nbElemOfType[SMDSEntity_Quad_Quadrangle ] || + bool hasQuadBiQuad = ( nbElemOfType[SMDSEntity_Quad_Triangle ] || + nbElemOfType[SMDSEntity_Quad_Quadrangle ] || nbElemOfType[SMDSEntity_Quad_Hexa ] ); bool hasQuad = ( nbElemOfType[SMDSEntity_Quad_Edge ] || @@ -356,9 +359,9 @@ SMESHGUI_ConvToQuadOp::DestinationMesh( const SMESH::SMESH_IDSource_var& idSourc int tgtType = 0; if ( hasBiQuad ) tgtType |= ( Quadratic | Linear ); - if ( hasLinStruct ) + if ( hasLinBiQuad ) tgtType |= ( BiQuadratic | Quadratic ); - if ( hasQuadStruct ) + if ( hasQuadBiQuad ) tgtType |= ( BiQuadratic | Linear ); if ( hasQuad ) tgtType |= Linear;