X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_HexaFromSkin_3D.cxx;h=d1617f3003d3f8cdaf7d5217950a536c01aca019;hb=35c26749e5beef3f04e30b8258a2210695069579;hp=64d98eec56ef0f8a72d76ee10c73b5fab27442e6;hpb=b09372829929f8f561495d6c16527134971a1909;p=modules%2Fsmesh.git diff --git a/src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx b/src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx index 64d98eec5..d1617f300 100644 --- a/src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx +++ b/src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -38,25 +38,13 @@ using namespace std; -// Define error message and _MYDEBUG_ if needed -#ifdef _DEBUG_ +// Define error message #define BAD_MESH_ERR \ error(SMESH_Comment("Can't detect block-wise structure of the input 2D mesh.\n" \ __FILE__ ":" )<<__LINE__) -//#define _MYDEBUG_ -#else -#define BAD_MESH_ERR \ - error(SMESH_Comment("Can't detect block-wise structure of the input 2D mesh")) -#endif - // Debug output -#ifdef _MYDEBUG_ #define _DUMP_(msg) cout << msg << endl -#else -#define _DUMP_(msg) -#endif - namespace { @@ -68,12 +56,12 @@ namespace { B_BOTTOM=0, B_RIGHT, B_TOP, B_LEFT, B_FRONT, B_BACK, NB_BLOCK_SIDES }; -#ifdef _MYDEBUG_ + const char* SBoxSides[] = //!< names of block sides -- needed for DEBUG only { "BOTTOM", "RIGHT", "TOP", "LEFT", "FRONT", "BACK", "UNDEFINED" }; -#endif + enum EQuadEdge //!< edges of quadrangle side { Q_BOTTOM = 0, Q_RIGHT, Q_TOP, Q_LEFT, NB_QUAD_SIDES