// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // File : NETGENPlugin_DriverParam.hxx // Author : Yoann AUDOUIN, EDF // Module : NETGEN // #ifndef _NETGENPLUGIN_DRIVERPARAM_HXX_ #define _NETGENPLUGIN_DRIVERPARAM_HXX_ #include struct netgen_params{ // Params from NETGENPlugin_Mesher // True if _hypParameters is not null bool has_netgen_param=true; double maxh; double minh; double segmentsperedge; double grading; double curvaturesafety; int secondorder; int quad; bool optimize; int fineness; bool uselocalh; bool merge_solids; double chordalError; int optsteps2d; int optsteps3d; double elsizeweight; int opterrpow; bool delaunay; bool checkoverlap; bool checkchartboundary; int closeedgefac; // Number of threads for the mesher int nbThreads; // True if we have a mesh size file or local size info bool has_local_size = false; std::string meshsizefilename; // Params from NETGEN3D // True if _hypMaxElementVolume is not null bool has_maxelementvolume_hyp=false; double maxElementVolume=0.0; // Params from NETGEN2D bool has_LengthFromEdges_hyp=false; }; void printNetgenParams(netgen_params& aParams); void importNetgenParams(const std::string param_file, netgen_params& aParams); void exportNetgenParams(const std::string param_file, netgen_params& aParams); #endif