PAL13504 (Mesh from an imported mesh)

set default value of mySetElemOnShape in dependence of mesh->HasShapeToMesh()
This commit is contained in:
eap 2007-02-20 06:53:06 +00:00
parent 49a1404d87
commit 03b8a7d78f
2 changed files with 6 additions and 3 deletions

View File

@ -51,8 +51,10 @@
//================================================================================ //================================================================================
SMESH_MesherHelper::SMESH_MesherHelper(SMESH_Mesh& theMesh) 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 //function : CheckShape

View File

@ -130,7 +130,8 @@ public:
/*! /*!
* \brief To set created elements on the shape set by IsQuadraticSubMesh() * \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; } void SetElementsOnShape(bool toSet) { mySetElemOnShape = toSet; }