From: eap Date: Tue, 20 Feb 2007 06:53:06 +0000 (+0000) Subject: PAL13504 (Mesh from an imported mesh) X-Git-Tag: V3_2_6a1~73 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=03b8a7d78f26695e931ab4259ea428d3dd0597cf;p=modules%2Fsmesh.git PAL13504 (Mesh from an imported mesh) set default value of mySetElemOnShape in dependence of mesh->HasShapeToMesh() --- diff --git a/src/SMESH/SMESH_MesherHelper.cxx b/src/SMESH/SMESH_MesherHelper.cxx index f85c337fe..7cf3b21f1 100644 --- a/src/SMESH/SMESH_MesherHelper.cxx +++ b/src/SMESH/SMESH_MesherHelper.cxx @@ -51,8 +51,10 @@ //================================================================================ SMESH_MesherHelper::SMESH_MesherHelper(SMESH_Mesh& theMesh) - : myMesh(&theMesh), myShapeID(-1), myCreateQuadratic(false), mySetElemOnShape(false) -{} + : myMesh(&theMesh), myShapeID(-1), myCreateQuadratic(false) +{ + mySetElemOnShape = ( ! myMesh->HasShapeToMesh() ); +} //======================================================================= //function : CheckShape diff --git a/src/SMESH/SMESH_MesherHelper.hxx b/src/SMESH/SMESH_MesherHelper.hxx index 4b2cfde5b..5ebdfc738 100644 --- a/src/SMESH/SMESH_MesherHelper.hxx +++ b/src/SMESH/SMESH_MesherHelper.hxx @@ -130,7 +130,8 @@ public: /*! * \brief To set created elements on the shape set by IsQuadraticSubMesh() - * or the next methods. By defaul elements are not set on the shape + * or the next methods. By defaul elements are set on the shape if + * a mesh has no shape to be meshed */ void SetElementsOnShape(bool toSet) { mySetElemOnShape = toSet; }