bos #24194: EDF - SplitHexahedraIntoPrisms

This commit is contained in:
eap 2021-04-19 17:06:39 +03:00
parent 21b39b9997
commit aae0e72c35
2 changed files with 33 additions and 15 deletions

View File

@ -2069,6 +2069,8 @@ namespace
const int methodFlags, const int methodFlags,
const int facetToSplit) const int facetToSplit)
{ {
TSplitMethod method;
// order of facets in HEX according to SMDS_VolumeTool::Hexa_F : // order of facets in HEX according to SMDS_VolumeTool::Hexa_F :
// B, T, L, B, R, F // B, T, L, B, R, F
const int iF = ( facetToSplit < 2 ) ? 0 : 1 + ( facetToSplit-2 ) % 2; // [0,1,2] const int iF = ( facetToSplit < 2 ) ? 0 : 1 + ( facetToSplit-2 ) % 2; // [0,1,2]
@ -2099,12 +2101,12 @@ namespace
to4methods[iF]._nbSplits = 4; to4methods[iF]._nbSplits = 4;
to4methods[iF]._nbCorners = 6; to4methods[iF]._nbCorners = 6;
} }
return to4methods[iF]; method = to4methods[iF];
to4methods[iF]._connectivity = method._connectivity; // as copy ctor resets _connectivity
return method;
} }
// else if ( methodFlags == HEXA_TO_2_PRISMS ) // else if ( methodFlags == HEXA_TO_2_PRISMS )
TSplitMethod method;
const int iQ = vol.Element()->IsQuadratic() ? 2 : 1; const int iQ = vol.Element()->IsQuadratic() ? 2 : 1;
const int nbVariants = 2, nbSplits = 2; const int nbVariants = 2, nbSplits = 2;

View File

@ -354,6 +354,22 @@ Consider creating another hypothesis instead of using this one for this mesh/sub
<source>SMESH_IMPORT_SOURCE_2D_TITLE</source> <source>SMESH_IMPORT_SOURCE_2D_TITLE</source>
<translation>Hypothesis Construction</translation> <translation>Hypothesis Construction</translation>
</message> </message>
<message>
<source>SMESH_PROJECTION_SOURCE_2D_HYPOTHESIS</source>
<translation>Source faces</translation>
</message>
<message>
<source>SMESH_PROJECTION_SOURCE_2D_TITLE</source>
<translation>Hypothesis Construction</translation>
</message>
<message>
<source>SMESH_PROJECTION_SOURCE_1D_HYPOTHESIS</source>
<translation>Source edges</translation>
</message>
<message>
<source>SMESH_PROJECTION_SOURCE_1D_TITLE</source>
<translation>Hypothesis Construction</translation>
</message>
<message> <message>
<source>SMESH_REMOVE_ROW</source> <source>SMESH_REMOVE_ROW</source>
<translation>Remove row</translation> <translation>Remove row</translation>