Fix in Grid calculation and remove some trace messages from SMESH

This commit is contained in:
jriegel 2013-05-29 00:34:08 +02:00
parent c10d87d366
commit e6c649cc1d
5 changed files with 10 additions and 10 deletions

View File

@ -50,7 +50,7 @@ using namespace std;
SMESH_Gen::SMESH_Gen()
{
MESSAGE("SMESH_Gen::SMESH_Gen");
//MESSAGE("SMESH_Gen::SMESH_Gen");
_localId = 0;
_hypId = 0;
_segmentation = 10;
@ -64,7 +64,7 @@ SMESH_Gen::SMESH_Gen()
SMESH_Gen::~SMESH_Gen()
{
MESSAGE("SMESH_Gen::~SMESH_Gen");
//MESSAGE("SMESH_Gen::~SMESH_Gen");
}
//=============================================================================

View File

@ -86,7 +86,7 @@ SMESH_Mesh::SMESH_Mesh(int theLocalId,
SMESHDS_Document* theDocument):
_groupId( 0 ), _nbSubShapes( 0 )
{
MESSAGE("SMESH_Mesh::SMESH_Mesh(int localId)");
//MESSAGE("SMESH_Mesh::SMESH_Mesh(int localId)");
_id = theLocalId;
_studyId = theStudyId;
_gen = theGen;
@ -107,7 +107,7 @@ SMESH_Mesh::SMESH_Mesh(int theLocalId,
SMESH_Mesh::~SMESH_Mesh()
{
INFOS("SMESH_Mesh::~SMESH_Mesh");
//INFOS("SMESH_Mesh::~SMESH_Mesh");
// issue 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study
// Notify event listeners at least that something happens

View File

@ -107,7 +107,7 @@ SMESH_subMesh::SMESH_subMesh(int Id,
SMESH_subMesh::~SMESH_subMesh()
{
MESSAGE("SMESH_subMesh::~SMESH_subMesh");
//MESSAGE("SMESH_subMesh::~SMESH_subMesh");
// ****
DeleteOwnListeners();
}

View File

@ -77,7 +77,7 @@ TYPESYSTEM_SOURCE(Fem::FemMesh , Base::Persistence);
FemMesh::FemMesh()
{
Base::Console().Log("FemMesh::FemMesh():%p (id=%i)\n",this,StatCount);
//Base::Console().Log("FemMesh::FemMesh():%p (id=%i)\n",this,StatCount);
myGen = new SMESH_Gen();
// create a mesh allways with new StudyId to avoid overlapping destruction
myMesh = myGen->CreateMesh(StatCount++,false);
@ -86,7 +86,7 @@ FemMesh::FemMesh()
FemMesh::FemMesh(const FemMesh& mesh)
{
Base::Console().Log("FemMesh::FemMesh(mesh):%p (id=%i)\n",this,StatCount);
//Base::Console().Log("FemMesh::FemMesh(mesh):%p (id=%i)\n",this,StatCount);
myGen = new SMESH_Gen();
myMesh = myGen->CreateMesh(StatCount++,false);
copyMeshData(mesh);
@ -94,7 +94,7 @@ FemMesh::FemMesh(const FemMesh& mesh)
FemMesh::~FemMesh()
{
Base::Console().Log("FemMesh::~FemMesh():%p\n",this);
//Base::Console().Log("FemMesh::~FemMesh():%p\n",this);
TopoDS_Shape aNull;
myMesh->ShapeToMesh(aNull);

View File

@ -651,8 +651,8 @@ void ViewProviderFEMMeshBuilder::createMesh(const App::Property* prop, SoCoordin
// calculate grid properties
double edge = pow(FaceSize,1.0/3.0);
double edgeL = BndBox.LengthX() + BndBox.LengthY() + BndBox.LengthZ();
double gridFactor = 50.0;
double size = ((3*edge) / edgeL)*gridFactor;
double gridFactor = 5.0;
double size = ( edgeL /(3*edge) )*gridFactor;
unsigned int NbrX = (unsigned int)(BndBox.LengthX()/size)+1;
unsigned int NbrY = (unsigned int)(BndBox.LengthY()/size)+1;