mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-28 16:20:48 +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 )
|
double NumericalFunctor::GetValue( long theId )
|
||||||
{
|
{
|
||||||
|
myCurrElement = myMesh->FindElement( theId );
|
||||||
TSequenceOfXYZ P;
|
TSequenceOfXYZ P;
|
||||||
if ( GetPoints( theId, P ))
|
if ( GetPoints( theId, P ))
|
||||||
{
|
{
|
||||||
@ -484,6 +485,7 @@ namespace{
|
|||||||
double AspectRatio3D::GetValue( const TSequenceOfXYZ& P )
|
double AspectRatio3D::GetValue( const TSequenceOfXYZ& P )
|
||||||
{
|
{
|
||||||
double aQuality = 0.0;
|
double aQuality = 0.0;
|
||||||
|
if(myCurrElement->IsPoly()) return aQuality;
|
||||||
int nbNodes = P.size();
|
int nbNodes = P.size();
|
||||||
switch(nbNodes){
|
switch(nbNodes){
|
||||||
case 4:{
|
case 4:{
|
||||||
|
@ -126,6 +126,7 @@ namespace SMESH{
|
|||||||
TSequenceOfXYZ& theRes);
|
TSequenceOfXYZ& theRes);
|
||||||
protected:
|
protected:
|
||||||
const SMDS_Mesh* myMesh;
|
const SMDS_Mesh* myMesh;
|
||||||
|
const SMDS_MeshElement* myCurrElement;
|
||||||
long myPrecision;
|
long myPrecision;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user