-// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 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
namespace netgen {
NETGENPLUGIN_DLL_HEADER
extern MeshingParameters mparam;
+#ifdef NETGEN_V5
extern void OCCSetLocalMeshSize(OCCGeometry & geom, Mesh & mesh);
+#endif
}
using namespace std;
//=============================================================================
/*!
- *
+ *
*/
//=============================================================================
: SMESH_2D_Algo(hypId, gen)
{
_name = "NETGEN_2D_ONLY";
-
+
_shapeType = (1 << TopAbs_FACE);// 1 bit /shape type
_onlyUnaryInput = false; // treat all FACEs at once
//=============================================================================
/*!
- *
+ *
*/
//=============================================================================
//=============================================================================
/*!
- *
+ *
*/
//=============================================================================
}
// set local size depending on curvature and NOT closeness of EDGEs
#ifdef NETGEN_V6
- const double factor = *netgen::mparam.closeedgefac;
- netgen::mparam.closeedgefac = std::nullopt;
+ const double factor = 2; //netgen::occparam.resthcloseedgefac;
#else
const double factor = netgen::occparam.resthcloseedgefac;
netgen::occparam.resthcloseedgeenable = false;
- //netgen::occparam.resthcloseedgefac = 1.0 + netgen::mparam.grading;
+ netgen::occparam.resthcloseedgefac = 1.0 + netgen::mparam.grading;
#endif
occgeoComm.face_maxh = netgen::mparam.maxh;
+#ifdef NETGEN_V6
+ netgen::OCCParameters occparam;
+ netgen::OCCSetLocalMeshSize( occgeoComm, *ngMeshes[0], netgen::mparam, occparam );
+#else
netgen::OCCSetLocalMeshSize( occgeoComm, *ngMeshes[0] );
+#endif
occgeoComm.emap.Clear();
occgeoComm.vmap.Clear();