mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
[bos #42468] Change vertex limits for right and back faces to have same node ranges as gmsh export.
This commit is contained in:
parent
cc09b83e05
commit
1824b937f0
@ -80,27 +80,61 @@ namespace SMESHUtils
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Define vertex numeration convention for vertex and face index limits!
|
||||||
|
*
|
||||||
|
* V7 V6
|
||||||
|
* +--------+--------+--------+
|
||||||
|
* / / / /|
|
||||||
|
* +--------+--------+--------+ |
|
||||||
|
* / / / /| |
|
||||||
|
* +--------+--------+--------+ | +
|
||||||
|
* / / / V5 /| |/|
|
||||||
|
* V4 +--------+--------+--------+ | + |
|
||||||
|
* | | | |/| |
|
||||||
|
* | | | + | +
|
||||||
|
* | | |/| |/|
|
||||||
|
* + | | + |
|
||||||
|
* | | | |/| |
|
||||||
|
* | +-------+----------+-| + | + V2
|
||||||
|
* | / V3 |/| |/
|
||||||
|
* + / | +
|
||||||
|
* | / | |/
|
||||||
|
* | / | +
|
||||||
|
* |/ |/
|
||||||
|
* +--------+--------+--------+
|
||||||
|
* V0 V1
|
||||||
|
*
|
||||||
|
* Canonical cartesian axis orientation
|
||||||
|
*
|
||||||
|
* ^ ^ j (or y)
|
||||||
|
* k (or z)| /
|
||||||
|
* | /
|
||||||
|
* |/
|
||||||
|
* +------> i (or x)
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
std::vector<T> SMESH_RegularGrid::getFaceIndexLimits( const FaceType face ) const
|
std::vector<T> SMESH_RegularGrid::getFaceIndexLimits( const FaceType face ) const
|
||||||
{
|
{
|
||||||
switch ( face ) {
|
switch ( face ) {
|
||||||
case FaceType::B_BOTTOM:
|
case FaceType::B_BOTTOM:
|
||||||
return std::vector<T>{1,1,1,mnx,mny,1}; /*V0-V2*/
|
return std::vector<T>{1,1,1,mnx,mny,1}; /*V0-V2*/
|
||||||
break;
|
break;
|
||||||
case FaceType::B_RIGHT:
|
case FaceType::B_RIGHT:
|
||||||
return std::vector<T>{mnx,1,1,mnx,mny,mnz}; /*V1-V6*/
|
return std::vector<T>{mnx,1,mnz,mnx,mny,1}; /*V5-V2*/ /*-> [bos #42468] pass from V1-V6 to V5-V2*/
|
||||||
break;
|
break;
|
||||||
case FaceType::B_BACK:
|
case FaceType::B_BACK:
|
||||||
return std::vector<T>{1,mny,1,mnx,mny,mnz}; /*V3-V6*/
|
return std::vector<T>{mnx,mny,1,1,mny,mnz}; /*V2-V7*/ /*-> [bos #42468] pass from V3-V6 to V2-V7*/
|
||||||
break;
|
break;
|
||||||
case FaceType::B_LEFT:
|
case FaceType::B_LEFT:
|
||||||
return std::vector<T>{1,1,1,1,mny,mnz}; /*V0-V7*/
|
return std::vector<T>{1,1,1,1,mny,mnz}; /*V0-V7*/
|
||||||
break;
|
break;
|
||||||
case FaceType::B_FRONT:
|
case FaceType::B_FRONT:
|
||||||
return std::vector<T>{1,1,1,mnx,1,mnz}; /*V0-V5*/
|
return std::vector<T>{1,1,1,mnx,1,mnz}; /*V0-V5*/
|
||||||
break;
|
break;
|
||||||
case FaceType::B_TOP:
|
case FaceType::B_TOP:
|
||||||
return std::vector<T>{1,1,mnz,mnx,mny,mnz}; /*V4-V6*/
|
return std::vector<T>{1,1,mnz,mnx,mny,mnz}; /*V4-V6*/
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return std::vector<T>{1,1,1,mnx,mny,1};
|
return std::vector<T>{1,1,1,mnx,mny,1};
|
||||||
|
Loading…
Reference in New Issue
Block a user