set default value of mySetElemOnShape in dependence of mesh->HasShapeToMesh()
//================================================================================
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
/*!
* \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; }