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 7592abe14d
commit 5c8d3ea614
5 changed files with 10 additions and 10 deletions

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;