From: eap Date: Tue, 11 Apr 2006 14:00:53 +0000 (+0000) Subject: PAL12129, fix Orentation of the preview for quadrangle and traingle X-Git-Tag: T3_2_0b1_pre1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aca43dfea864965aef4bd20967026f4259d62696;p=modules%2Fsmesh.git PAL12129, fix Orentation of the preview for quadrangle and traingle --- diff --git a/src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx b/src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx index ddc38ef4a..4e12fe653 100644 --- a/src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_AddQuadraticElementDlg.cxx @@ -97,6 +97,16 @@ namespace SMESH { conn = aConn; 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:; } if ( !conn ) { @@ -204,8 +214,8 @@ namespace SMESH { } } else { - // VTK cell connectivity opposites the MED one - if ( !theReverse ) { + // VTK cell connectivity opposites the MED one for volumic elements + if ( theIds.size() > 8 ? !theReverse : theReverse ) { ReverseConnectivity( theIds, theType ); } }