Salome HOME
PAL13504 (Mesh from an imported mesh)
authoreap <eap@opencascade.com>
Tue, 20 Feb 2007 06:53:06 +0000 (06:53 +0000)
committereap <eap@opencascade.com>
Tue, 20 Feb 2007 06:53:06 +0000 (06:53 +0000)
   set default value of mySetElemOnShape in dependence of mesh->HasShapeToMesh()

src/SMESH/SMESH_MesherHelper.cxx
src/SMESH/SMESH_MesherHelper.hxx

index f85c337fe581747757b18778360dc0758cdc4e9c..7cf3b21f16d07a40bea460fec5da599a73a0b568 100644 (file)
 //================================================================================
 
 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
index 4b2cfde5b041661d4499e844f4724fe2d66455b0..5ebdfc738cf85fa00b881111d8c8a8a1940aa978 100644 (file)
@@ -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; }