From 03b8a7d78f26695e931ab4259ea428d3dd0597cf Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 20 Feb 2007 06:53:06 +0000 Subject: [PATCH] PAL13504 (Mesh from an imported mesh) set default value of mySetElemOnShape in dependence of mesh->HasShapeToMesh() --- src/SMESH/SMESH_MesherHelper.cxx | 6 ++++-- src/SMESH/SMESH_MesherHelper.hxx | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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; } -- 2.39.2