mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +05:00
Fix on Bug SMESH6034
StdMeshers_Hexa_3D does not work with different segment numbers on edges We shoose patch proposed by Bouhamou, see BUG's commants
This commit is contained in:
parent
f096a91538
commit
f1ec8880d0
@ -331,13 +331,31 @@ bool StdMeshers_Hexa_3D::Compute(SMESH_Mesh & aMesh,
|
||||
// 1.8 - create a 3D structure for normalized values
|
||||
|
||||
MESSAGE("---");
|
||||
int nbx = _cube.quad_Y0->nbPts[0];
|
||||
int nby = _cube.quad_Y0->nbPts[1];
|
||||
int nbz;
|
||||
if (cx0.a1 != 0)
|
||||
nbz = _cube.quad_X0->nbPts[1];
|
||||
else
|
||||
nbz = _cube.quad_X0->nbPts[0];
|
||||
//SCRUTE(_cube.quad_X0->nbPts[0]);
|
||||
//SCRUTE(_cube.quad_X0->nbPts[1]);
|
||||
//SCRUTE(_cube.quad_X1->nbPts[0]);
|
||||
//SCRUTE(_cube.quad_X1->nbPts[1]);
|
||||
//SCRUTE(_cube.quad_Y0->nbPts[0]);
|
||||
//SCRUTE(_cube.quad_Y0->nbPts[1]);
|
||||
//SCRUTE(_cube.quad_Y1->nbPts[0]);
|
||||
//SCRUTE(_cube.quad_Y1->nbPts[1]);
|
||||
//SCRUTE(_cube.quad_Z0->nbPts[0]);
|
||||
//SCRUTE(_cube.quad_Z0->nbPts[1]);
|
||||
//SCRUTE(_cube.quad_Z1->nbPts[0]);
|
||||
//SCRUTE(_cube.quad_Z1->nbPts[1]);
|
||||
|
||||
// Fix on Bug SMESH6034
|
||||
// StdMeshers_Hexa_3D does not work with different segment numbers on edges
|
||||
int nbx = _cube.quad_Z0->nbPts[0];
|
||||
if (cz0.a1 == 0.) nbx = _cube.quad_Z0->nbPts[1];
|
||||
|
||||
int nby = _cube.quad_X0->nbPts[0];
|
||||
if (cx0.a1 == 0.) nby = _cube.quad_X0->nbPts[1];
|
||||
|
||||
int nbz = _cube.quad_Y0->nbPts[0];
|
||||
if (cy0.a1 != 0.) nbz = _cube.quad_Y0->nbPts[1];
|
||||
// End of Fix on Bug SMESH6034
|
||||
|
||||
//SCRUTE(nbx);
|
||||
//SCRUTE(nby);
|
||||
//SCRUTE(nbz);
|
||||
|
Loading…
Reference in New Issue
Block a user