Fix for Bug IPAL11013:

Hexahedron that created with "Polyhedron" functionality breaks VTK viewer and "Aspect Ratio 3D"
This commit is contained in:
enk 2006-03-21 08:05:09 +00:00
parent d2b75f321f
commit aeb7cec23a
2 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,7 @@ void NumericalFunctor::SetPrecision( const long thePrecision )
double NumericalFunctor::GetValue( long theId )
{
myCurrElement = myMesh->FindElement( theId );
TSequenceOfXYZ P;
if ( GetPoints( theId, P ))
{
@ -484,6 +485,7 @@ namespace{
double AspectRatio3D::GetValue( const TSequenceOfXYZ& P )
{
double aQuality = 0.0;
if(myCurrElement->IsPoly()) return aQuality;
int nbNodes = P.size();
switch(nbNodes){
case 4:{

View File

@ -126,6 +126,7 @@ namespace SMESH{
TSequenceOfXYZ& theRes);
protected:
const SMDS_Mesh* myMesh;
const SMDS_MeshElement* myCurrElement;
long myPrecision;
};