X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_Hexa_3D.cxx;h=7e1c49a357259265b155ea5f0b39fd0c15571251;hp=42b5488ecda855a7827d137409381fd7629e361e;hb=178d2ef645d103ce49228cde6ed35488144ed446;hpb=8f66923fb0cddac793068917f899d3b0b840dc07 diff --git a/src/StdMeshers/StdMeshers_Hexa_3D.cxx b/src/StdMeshers/StdMeshers_Hexa_3D.cxx index 42b5488ec..7e1c49a35 100644 --- a/src/StdMeshers/StdMeshers_Hexa_3D.cxx +++ b/src/StdMeshers/StdMeshers_Hexa_3D.cxx @@ -161,7 +161,7 @@ inline bool isCloser(const int i, const int j, const int nbhoriz, static bool findIJ (const SMDS_MeshNode* node, const FaceQuadStruct * quad, int& I, int& J) { const SMDS_FacePosition* fpos = - static_cast(node->GetPosition().get()); + static_cast(node->GetPosition()); if ( ! fpos ) return false; gp_Pnt2d uv( fpos->GetUParameter(), fpos->GetVParameter() ); @@ -206,9 +206,9 @@ static bool findIJ (const SMDS_MeshNode* node, const FaceQuadStruct * quad, int& * -0. - shape and face mesh verification * -1. - identify faces and vertices of the "cube" * -2. - Algorithm from: - * "Application de l'interpolation transfinie à la création de maillages + * "Application de l'interpolation transfinie a la creation de maillages * C0 ou G1 continus sur des triangles, quadrangles, tetraedres, pentaedres - * et hexaedres déformés." + * et hexaedres deformes." * Alain PERONNET - 8 janvier 1999 */ //============================================================================= @@ -407,6 +407,9 @@ bool StdMeshers_Hexa_3D::Compute(SMESH_Mesh & aMesh, int i1, j1, nbxyz = nbx * nby * nbz; Point3DStruct *np = new Point3DStruct[nbxyz]; + + aMesh.GetMeshDS()->incrementNodesCapacity(nbx * nby * nbz); + aMesh.GetMeshDS()->incrementCellsCapacity((nbx-1) * (nby-1) * (nbz-1)); // 1.9 - store node indexes of faces