mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 04:20:33 +05:00
Fix for Bug IPAL11013:
Hexahedron that created with "Polyhedron" functionality breaks VTK viewer and "Aspect Ratio 3D"
This commit is contained in:
parent
d2b75f321f
commit
aeb7cec23a
@ -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:{
|
||||
|
@ -126,6 +126,7 @@ namespace SMESH{
|
||||
TSequenceOfXYZ& theRes);
|
||||
protected:
|
||||
const SMDS_Mesh* myMesh;
|
||||
const SMDS_MeshElement* myCurrElement;
|
||||
long myPrecision;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user