mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-13 18:13:06 +05:00
PAL12129, fix Orentation of the preview for quadrangle and traingle
This commit is contained in:
parent
9d6891a191
commit
aca43dfea8
@ -97,6 +97,16 @@ namespace SMESH {
|
|||||||
conn = aConn;
|
conn = aConn;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case QUAD_TRIANGLE: {
|
||||||
|
static int aConn[] = {0,2,1,5,4,3};
|
||||||
|
conn = aConn;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case QUAD_QUADRANGLE: {
|
||||||
|
static int aConn[] = {0,3,2,1,7,6,5,4};
|
||||||
|
conn = aConn;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:;
|
default:;
|
||||||
}
|
}
|
||||||
if ( !conn ) {
|
if ( !conn ) {
|
||||||
@ -204,8 +214,8 @@ namespace SMESH {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// VTK cell connectivity opposites the MED one
|
// VTK cell connectivity opposites the MED one for volumic elements
|
||||||
if ( !theReverse ) {
|
if ( theIds.size() > 8 ? !theReverse : theReverse ) {
|
||||||
ReverseConnectivity( theIds, theType );
|
ReverseConnectivity( theIds, theType );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user