2023-06-19 21:55:24 +05:00
|
|
|
// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
|
2004-03-26 12:05:19 +05:00
|
|
|
//
|
2012-08-09 17:45:31 +06:00
|
|
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2004-03-26 12:05:19 +05:00
|
|
|
//
|
2012-08-09 17:45:31 +06:00
|
|
|
// 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
|
2014-02-19 18:50:20 +06:00
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
2009-02-17 12:15:34 +05:00
|
|
|
//
|
2012-08-09 17:45:31 +06:00
|
|
|
// 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.
|
2009-02-17 12:15:34 +05:00
|
|
|
//
|
2012-08-09 17:45:31 +06:00
|
|
|
// 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
|
2009-02-17 12:15:34 +05:00
|
|
|
//
|
2012-08-09 17:45:31 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2004-03-26 12:05:19 +05:00
|
|
|
//
|
2012-08-09 17:45:31 +06:00
|
|
|
|
2004-03-26 12:05:19 +05:00
|
|
|
// File : NETGENPlugin_Algorithm.idl
|
|
|
|
// Author : Julia DOROVSKIKH
|
2009-02-17 12:15:34 +05:00
|
|
|
//
|
2004-03-26 12:05:19 +05:00
|
|
|
#ifndef _SMESH_NETGENALGORITHM_IDL_
|
|
|
|
#define _SMESH_NETGENALGORITHM_IDL_
|
|
|
|
|
2009-02-17 12:15:34 +05:00
|
|
|
#include "SALOME_Exception.idl"
|
2004-03-26 12:05:19 +05:00
|
|
|
#include "SMESH_Hypothesis.idl"
|
2019-01-17 18:03:36 +05:00
|
|
|
#include "SMESH_Group.idl"
|
2012-08-09 17:45:31 +06:00
|
|
|
#include "GEOM_Gen.idl"
|
2004-03-26 12:05:19 +05:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* NETGENPlugin: interfaces to NETGEN related hypotheses and algorithms
|
|
|
|
*/
|
|
|
|
module NETGENPlugin
|
|
|
|
{
|
2012-08-09 17:45:31 +06:00
|
|
|
typedef sequence<string> string_array;
|
2004-03-26 12:05:19 +05:00
|
|
|
/*!
|
|
|
|
* NETGENPlugin_NETGEN_3D: interface of "Tetrahedron (Netgen)" algorithm
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_NETGEN_3D : SMESH::SMESH_3D_Algo
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2022-10-21 18:03:58 +05:00
|
|
|
/*!
|
|
|
|
* NETGENPlugin_NETGEN_3D: interface of "Remote Tetrahedron (Netgen)" algorithm
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_NETGEN_3D_Remote : NETGENPlugin::NETGENPlugin_NETGEN_3D
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2006-05-06 14:54:13 +06:00
|
|
|
/*!
|
2008-03-07 12:47:18 +05:00
|
|
|
* NETGENPlugin_NETGEN_2D: interface of "Netgen 1D-2D" algorithm
|
2006-05-06 14:54:13 +06:00
|
|
|
*/
|
|
|
|
interface NETGENPlugin_NETGEN_2D : SMESH::SMESH_2D_Algo
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
/*!
|
2008-03-07 12:47:18 +05:00
|
|
|
* NETGENPlugin_NETGEN_2D3D: interface of "Netgen 1D-2D-3D" algorithm
|
2006-05-06 14:54:13 +06:00
|
|
|
*/
|
|
|
|
interface NETGENPlugin_NETGEN_2D3D : SMESH::SMESH_3D_Algo
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2008-03-07 12:47:18 +05:00
|
|
|
/*!
|
|
|
|
* NETGENPlugin_NETGEN_2D_ONLY: interface of "Netgen 2D" algorithm,
|
|
|
|
* generating 2D elements on a geometrical face taking
|
|
|
|
* into account pre-existing nodes on face boundaries
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_NETGEN_2D_ONLY : SMESH::SMESH_2D_Algo
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2023-10-24 20:58:28 +05:00
|
|
|
/*!
|
|
|
|
* NETGENPlugin_NETGEN_2D: interface of "Remote Triangle (Netgen)" algorithm
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_NETGEN_2D_Remote : NETGENPlugin::NETGENPlugin_NETGEN_2D_ONLY
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2017-10-17 19:38:39 +05:00
|
|
|
/*!
|
|
|
|
* NETGENPlugin_Remesher_2D: interface of "NETGEN Remesher" algorithm,
|
|
|
|
* generating 2D elements basing on an existing 2D mesh
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_Remesher_2D : SMESH::SMESH_2D_Algo
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2006-05-06 14:54:13 +06:00
|
|
|
/*!
|
|
|
|
* NETGENPlugin_Hypothesis: interface of "NETGEN parameters" hypothesis
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_Hypothesis : SMESH::SMESH_Hypothesis
|
|
|
|
{
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetMaxSize(in double value);
|
|
|
|
double GetMaxSize();
|
2006-05-06 14:54:13 +06:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetMinSize(in double value);
|
|
|
|
double GetMinSize();
|
2012-08-09 17:45:31 +06:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetSecondOrder(in boolean value);
|
2006-05-06 14:54:13 +06:00
|
|
|
boolean GetSecondOrder();
|
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetOptimize(in boolean value);
|
2006-05-06 14:54:13 +06:00
|
|
|
boolean GetOptimize();
|
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetFineness(in long value);
|
|
|
|
long GetFineness();
|
2006-05-06 14:54:13 +06:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetGrowthRate(in double value);
|
|
|
|
double GetGrowthRate();
|
2006-05-06 14:54:13 +06:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetNbSegPerEdge(in double value);
|
|
|
|
double GetNbSegPerEdge();
|
2006-05-06 14:54:13 +06:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetChordalErrorEnabled(in boolean value);
|
2017-10-17 19:38:39 +05:00
|
|
|
boolean GetChordalErrorEnabled();
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetChordalError(in double value);
|
|
|
|
double GetChordalError();
|
2017-10-17 19:38:39 +05:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetNbSegPerRadius(in double value);
|
|
|
|
double GetNbSegPerRadius();
|
2012-08-09 17:45:31 +06:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetQuadAllowed(in boolean value);
|
2012-08-09 17:45:31 +06:00
|
|
|
boolean GetQuadAllowed();
|
2022-10-21 18:03:58 +05:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetUseSurfaceCurvature(in boolean value);
|
2014-01-15 16:08:00 +06:00
|
|
|
boolean GetUseSurfaceCurvature();
|
2022-10-21 18:03:58 +05:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetFuseEdges(in boolean value);
|
2014-01-15 16:08:00 +06:00
|
|
|
boolean GetFuseEdges();
|
2012-08-09 17:45:31 +06:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetLocalSizeOnShape(in GEOM::GEOM_Object GeomObj, in double localSize)
|
2015-04-23 20:03:26 +05:00
|
|
|
raises (SALOME::SALOME_Exception);
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetLocalSizeOnEntry(in string entry, in double localSize);
|
|
|
|
double GetLocalSizeOnEntry(in string entry);
|
2012-08-09 17:45:31 +06:00
|
|
|
string_array GetLocalSizeEntries();
|
2019-01-17 18:03:36 +05:00
|
|
|
void UnsetLocalSizeOnEntry(in string entry);
|
2016-10-07 19:49:45 +05:00
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetMeshSizeFile(in string fileName);
|
|
|
|
string GetMeshSizeFile();
|
|
|
|
|
|
|
|
void SetNbSurfOptSteps(in short nb );
|
|
|
|
short GetNbSurfOptSteps();
|
|
|
|
|
|
|
|
void SetNbVolOptSteps(in short nb );
|
|
|
|
short GetNbVolOptSteps();
|
|
|
|
|
|
|
|
void SetElemSizeWeight(in double size );
|
|
|
|
double GetElemSizeWeight();
|
|
|
|
|
|
|
|
void SetWorstElemMeasure(in short val );
|
|
|
|
short GetWorstElemMeasure();
|
|
|
|
|
2022-10-21 18:03:58 +05:00
|
|
|
void SetNbThreads(in short val );
|
|
|
|
short GetNbThreads();
|
|
|
|
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetUseDelauney(in boolean toUse);
|
|
|
|
boolean GetUseDelauney();
|
|
|
|
|
|
|
|
void SetCheckOverlapping(in boolean toCheck );
|
|
|
|
boolean GetCheckOverlapping();
|
|
|
|
|
|
|
|
void SetCheckChartBoundary(in boolean toCheck );
|
|
|
|
boolean GetCheckChartBoundary();
|
2006-05-06 14:54:13 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* NETGENPlugin_Hypothesis_2D: interface of "NETGEN 2D parameters" hypothesis
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_Hypothesis_2D : NETGENPlugin_Hypothesis
|
|
|
|
{
|
2012-08-09 17:45:31 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
/*!
|
2017-11-30 16:16:01 +05:00
|
|
|
* interface of "NETGEN 2D parameters" hypothesis used by NETGENPlugin_NETGEN_2D_ONLY algorithm
|
2012-08-09 17:45:31 +06:00
|
|
|
*/
|
|
|
|
interface NETGENPlugin_Hypothesis_2D_ONLY : NETGENPlugin_Hypothesis_2D
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* interface of "NETGEN 3D parameters" hypothesis used by NETGENPlugin_NETGEN_3D algorithm
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_Hypothesis_3D : NETGENPlugin_Hypothesis
|
|
|
|
{
|
2006-05-06 14:54:13 +06:00
|
|
|
};
|
|
|
|
|
2017-10-17 19:38:39 +05:00
|
|
|
/*!
|
2017-11-30 16:16:01 +05:00
|
|
|
* interface of "NETGEN Remesher parameters" hypothesis used by NETGENPlugin_Remesher_2D algorithm
|
2017-10-17 19:38:39 +05:00
|
|
|
*/
|
|
|
|
interface NETGENPlugin_RemesherHypothesis_2D : NETGENPlugin_Hypothesis_2D
|
|
|
|
{
|
|
|
|
/*!
|
|
|
|
* \brief Set/get ridge angle
|
|
|
|
*/
|
2019-01-17 18:03:36 +05:00
|
|
|
void SetRidgeAngle(in double angle );
|
|
|
|
double GetRidgeAngle();
|
|
|
|
|
|
|
|
void SetEdgeCornerAngle(in double angle );
|
|
|
|
double GetEdgeCornerAngle();
|
|
|
|
|
|
|
|
void SetChartAngle(in double angle );
|
|
|
|
double GetChartAngle();
|
|
|
|
|
|
|
|
void SetOuterChartAngle(in double angle );
|
|
|
|
double GetOuterChartAngle();
|
|
|
|
|
|
|
|
void SetRestHChartDistFactor(in double f );
|
|
|
|
double GetRestHChartDistFactor();
|
|
|
|
|
|
|
|
void SetRestHChartDistEnable(in boolean enable );
|
|
|
|
boolean GetRestHChartDistEnable();
|
|
|
|
|
|
|
|
void SetRestHLineLengthFactor(in double f );
|
|
|
|
double GetRestHLineLengthFactor();
|
|
|
|
|
|
|
|
void SetRestHLineLengthEnable(in boolean enable );
|
|
|
|
boolean GetRestHLineLengthEnable();
|
|
|
|
|
|
|
|
void SetRestHCloseEdgeFactor(in double f );
|
|
|
|
double GetRestHCloseEdgeFactor();
|
|
|
|
|
|
|
|
void SetRestHCloseEdgeEnable(in boolean enable );
|
|
|
|
boolean GetRestHCloseEdgeEnable();
|
|
|
|
|
|
|
|
void SetRestHSurfCurvFactor(in double f );
|
|
|
|
double GetRestHSurfCurvFactor();
|
|
|
|
|
|
|
|
void SetRestHSurfCurvEnable(in boolean enable );
|
|
|
|
boolean GetRestHSurfCurvEnable();
|
|
|
|
|
|
|
|
void SetRestHEdgeAngleFactor(in double f );
|
|
|
|
double GetRestHEdgeAngleFactor();
|
|
|
|
|
|
|
|
void SetRestHEdgeAngleEnable(in boolean enable );
|
|
|
|
boolean GetRestHEdgeAngleEnable();
|
|
|
|
|
|
|
|
void SetRestHSurfMeshCurvFactor(in double f );
|
|
|
|
double GetRestHSurfMeshCurvFactor();
|
|
|
|
|
|
|
|
void SetRestHSurfMeshCurvEnable(in boolean enable );
|
|
|
|
boolean GetRestHSurfMeshCurvEnable();
|
|
|
|
|
|
|
|
void SetKeepExistingEdges(in boolean toKeep );
|
|
|
|
boolean GetKeepExistingEdges();
|
|
|
|
|
|
|
|
void SetMakeGroupsOfSurfaces(in boolean toMake );
|
|
|
|
boolean GetMakeGroupsOfSurfaces();
|
|
|
|
|
|
|
|
void SetLoadMeshOnCancel(in boolean toLoad );
|
|
|
|
boolean GetLoadMeshOnCancel();
|
|
|
|
|
|
|
|
void SetFixedEdgeGroup( in SMESH::SMESH_GroupBase edgeGroup );
|
|
|
|
SMESH::SMESH_GroupBase GetFixedEdgeGroup( in SMESH::SMESH_Mesh mesh );
|
2017-10-17 19:38:39 +05:00
|
|
|
};
|
|
|
|
|
2009-02-17 12:15:34 +05:00
|
|
|
/*!
|
|
|
|
* NETGENPlugin_Hypothesis: interface of "NETGEN 2D simple parameters" hypothesis
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_SimpleHypothesis_2D : SMESH::SMESH_Hypothesis
|
|
|
|
{
|
|
|
|
/*!
|
|
|
|
* Sets <number of segments> value
|
|
|
|
*/
|
2021-03-17 20:14:10 +05:00
|
|
|
void SetNumberOfSegments(in long nb) raises (SALOME::SALOME_Exception);
|
2009-02-17 12:15:34 +05:00
|
|
|
/*!
|
|
|
|
* Returns <number of segments> value.
|
|
|
|
* Can be zero in case if LocalLength() has been set
|
|
|
|
*/
|
2021-03-17 20:14:10 +05:00
|
|
|
long GetNumberOfSegments();
|
2009-02-17 12:15:34 +05:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* Sets <segment length> value
|
|
|
|
*/
|
|
|
|
void SetLocalLength(in double segmentLength);
|
|
|
|
/*!
|
|
|
|
* Returns <segment length> value.
|
|
|
|
* Can be zero in case if NumberOfSegments() has been set
|
|
|
|
*/
|
|
|
|
double GetLocalLength();
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Sets <maximum element area> to be dependent on 1D discretization
|
|
|
|
*/
|
|
|
|
void LengthFromEdges();
|
|
|
|
/*!
|
|
|
|
* Sets <maximum element area> value.
|
|
|
|
* Zero or negative value means same as LengthFromEdges().
|
|
|
|
*/
|
|
|
|
void SetMaxElementArea(in double area);
|
|
|
|
/*!
|
|
|
|
* Returns <maximum element area> value.
|
|
|
|
* Can be zero in case of LengthFromEdges()
|
|
|
|
*/
|
|
|
|
double GetMaxElementArea();
|
2012-08-09 17:45:31 +06:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* Enables/disables generation of quadrangular faces
|
|
|
|
*/
|
|
|
|
void SetAllowQuadrangles(in boolean toAllow);
|
|
|
|
/*!
|
|
|
|
* Returns true if generation of quadrangular faces is enabled
|
|
|
|
*/
|
|
|
|
boolean GetAllowQuadrangles();
|
2009-02-17 12:15:34 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* NETGENPlugin_SimpleHypothesis_3D: interface of "NETGEN 3D simple parameters" hypothesis
|
|
|
|
*/
|
|
|
|
interface NETGENPlugin_SimpleHypothesis_3D : NETGENPlugin_SimpleHypothesis_2D
|
|
|
|
{
|
|
|
|
/*!
|
|
|
|
* Sets <maximum element volume> to be dependent on 2D discretization
|
|
|
|
*/
|
|
|
|
void LengthFromFaces();
|
|
|
|
/*!
|
|
|
|
* Sets <maximum element volume> value.
|
|
|
|
* Zero or negative value means same as LengthFromFaces().
|
|
|
|
*/
|
|
|
|
void SetMaxElementVolume(in double volume);
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* Returns <maximum element volume> value
|
|
|
|
* Can be zero in case of LengthFromFaces()
|
|
|
|
*/
|
|
|
|
double GetMaxElementVolume();
|
|
|
|
};
|
|
|
|
|
2004-03-26 12:05:19 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|