/*!
-\page blsurf_hypo_page BLSURF Parameters hypothesis
+\page blsurf_hypo_page MG-CADSurf Parameters hypothesis (former BLSURF
+Parameters)
\anchor blsurf_top
\image html blsurf_parameters.png
-- <b>Name</b> - allows defining the name of the hypothesis (BLSURF
+- <b>Name</b> - allows defining the name of the hypothesis (MG-CADSurf
Parameters_n by default).
- <b>Physical Mesh</b> - can be set to <em>None</em>, <em>Global size</em>
- <b>ExportGMF</b> - saves the computed mesh into a GMF file (.mesh or .meshb).
-- <b>Add option</b> - provides the choice of multiple PreCAD and BLSURF
+- <b>Add option</b> - provides the choice of multiple PreCAD and MG-CADSurf
advanced options, which appear, if selected, in a table where it is
possible to input the value of the option and edit it later.
- <b>Clear option</b> - removes the option selected in the table.
-The following BLSURF options are commonly usable:
+The following MG-CADSurf options are commonly usable:
- \b frontal (integer)
prescribed by the attractor function.
- Else the growing is only controled by the standard arguments of
- BLSURF (gradation ...).
+ MG-CADSurf (gradation ...).
\image html blsurf_const_size_near_shape2.png "Example of size map with constant size option, the size is kept constant on the left side of the surface until a certain distance"
map of distances has to be built on the whole surface for each face
where such a hypothesis has been defined.
-\sa Sample TUI Script of the \ref tui_blsurf "creation of a BLSurf hypothesis", including size map.
+\sa Sample TUI Script of the \ref tui_blsurf "creation of a MG-CADSurf hypothesis", including size map.
\ref blsurf_local_size "Back to \"Local size\""\n
\ref blsurf_top "Back to top"
\image html blsurf_parameters_enforced_vertices.png
-It is possible to define some enforced vertices to BLSurf algorithm.
+It is possible to define some enforced vertices to MG-CADSurf algorithm.
An enforced vertex is defined on a Face or a Compound by
- selecting an existing Vertex or Compound,
All the internal vertices of the faces can be considered as enforced vertices if the corresponding checkbox is checked.
A group can optionnaly be defined on those enforced vertices.
-\sa Sample TUI Script of the \ref tui_blsurf "creation of a BLSurf hypothesis", including enforced vertices.
+\sa Sample TUI Script of the \ref tui_blsurf "creation of a MG-CADSurf hypothesis", including enforced vertices.
\ref blsurf_top "Back to top"
Periodicity is used to have the same discretization on two faces (in 3D) or two edges (in 2D).
This is useful for instance for a Representative Volume Element so that the translated meshes share the same nodes on the common faces.
-In GUI, periodicity association uses PreCAD (optional BLSURF add-on). Be sure to have a PreCAD license to be able to use it. Otherwise, use \ref periodicity_tui_basic_api_usage "the basic API in TUI" or the \ref periodicity_tui_advanced_api_usage "the advanced API in TUI".
+In GUI, periodicity association uses PreCAD (optional MG-CADSurf add-on). Be sure to have a PreCAD license to be able to use it. Otherwise, use \ref periodicity_tui_basic_api_usage "the basic API in TUI" or the \ref periodicity_tui_advanced_api_usage "the advanced API in TUI".
\image html blsurf_periodicity_translation.png "Two periodic faces (translation)"
List of source and target vertices to define a transformation are optional.
-\sa Sample TUI Script of the definition of BLSurf periodicity \ref tui_blsurf_periodicity_preCAD "using preCAD".
+\sa Sample TUI Script of the definition of MG-CADSurf periodicity \ref tui_blsurf_periodicity_preCAD "using preCAD".
\subsection periodicity_tui_basic_api_usage TUI Basic API usage
- BLSURFPluginBuilder.BLSURF_Algorithm.AddEdgePeriodicityWithoutFaces
- BLSURFPluginBuilder.BLSURF_Algorithm.AddVertexPeriodicity
-Sample TUI Script of the definition of BLSurf periodicity \ref tui_blsurf_periodicity_basic "using basic API (without preCAD)".
+Sample TUI Script of the definition of MG-CADSurf periodicity \ref tui_blsurf_periodicity_basic "using basic API (without preCAD)".
\subsection periodicity_tui_advanced_api_usage TUI Advanced API usage
- BLSURFPluginBuilder.BLSURF_Algorithm.AddAdvancedFacesPeriodicity (in 3D)
- BLSURFPluginBuilder.BLSURF_Algorithm.AddAdvancedEdgesPeriodicity (in 2D)
-Sample TUI Script of the definition of BLSurf periodicity \ref tui_blsurf_periodicity_advanced "using advanced API (without preCAD)".
+Sample TUI Script of the definition of MG-CADSurf periodicity \ref tui_blsurf_periodicity_advanced "using advanced API (without preCAD)".
\ref blsurf_top "Back to top"
-\section blsurf_limitations Limitations
-
-Currently BLSURF plugin has the following limitations.
-
-- BLSURF algorithm cannot be used as a local algorithm (on
-sub-meshes) or as a provider of a low-level
-mesh for some 3D algorithms, because the BLSURF mesher (and
-consequently plugin) does not provide the information on node
-parameters on edges (U) and faces (U,V). For example the
-following combinations of algorithms are impossible:
-
- - global MEFISTO or Quadrangle(mapping) + local BLSURF;
-
- - BLSURF + Projection 2D from faces meshed by BLSURF;
-
- - local BLSURF + Extrusion 3D;
-
-\ref blsurf_top "Back to top"
-
*/
\anchor tui_blsurf
-\section blsurf_construct_mesh Construction of Mesh using BLSurf algorithm
+\section blsurf_construct_mesh Construction of Mesh using MG-CADSurf
+(former BLSURF) algorithm
\anchor example_BLSURFPlugin
-<h2>Example of mesh generation with BLSurf algorithm:</h2>
+<h2>Example of mesh generation with MG-CADSurf algorithm:</h2>
\tui_script{blsurfdemo.py}
\anchor tui_blsurf_periodicity_preCAD
\b BLSURFPLUGIN SALOME module represents a meshing plug-in that can be
used within the SALOME Mesh module for generation of 2D mesh.
-\note BLSURFPLUGIN plugin uses DISTENE BLSurf commercial meshing
+\note BLSURFPLUGIN plugin uses DISTENE MG-CADSurf commercial meshing
software and requires a license at the run time (to work within the
Mesh module). To obtain a licence, visit http://www.distene.com/en/corp/eval-distene.html
\b BLSURFPLUGIN plugin is destined for:
- Meshing of the 2D geometric entities.
-To manage parameters of the BLSURFPLUGIN, use \subpage blsurf_hypo_page.
+To manage parameters of the MG-CADSurf mesher, use \subpage blsurf_hypo_page.
-Also, all BLSURFPLUGIN functionalities are accessible via the
+Also, all MG-CADSurf functionalities are accessible via the
\subpage blsurfplugin_python_interface_page "BLSURFPLUGIN Python interface".
*/
server-lib="BLSURFEngine"
gui-lib="BLSURFPluginGUI">
<hypotheses>
- <hypothesis type="BLSURF_Parameters"
- label-id="BLSURF Parameters"
+ <hypothesis type="MG_CADSurf_Parameters"
+ label-id="MG-CADSurf Parameters"
icon-id="mesh_hypo_BLSURF.png"
dim="2">
<python-wrap>
</hypotheses>
<algorithms>
- <algorithm type="BLSURF"
- label-id="BLSURF"
+ <algorithm type="MG_CADSurf"
+ label-id="MG-CADSurf"
icon-id="mesh_algo_BLSURF.png"
- opt-hypos="BLSURF_Parameters,ViscousLayers2D"
+ opt-hypos="MG_CADSurf_Parameters,ViscousLayers2D"
output="TRIA,QUAD"
dim="2"
support-submeshes="true">
<python-wrap>
- <algo>BLSURF=Triangle(algo=smeshBuilder.BLSURF)</algo>
+ <algo>BLSURF=Triangle(algo=smeshBuilder.MG_CADSurf)</algo>
<hypo>BLSURF_Parameters=Parameters()</hypo>
<hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
</python-wrap>
#----------------------------
## Algorithm type: BLSurf triangle 2D algorithm, see BLSURF_Algorithm
-BLSURF = "BLSURF"
+BLSURF = "MG_CADSurf"
+MG_CADSurf = "MG_CADSurf"
#----------------------
# Algorithms
# @return hypothesis object
def Parameters(self):
if not self.params:
- self.params = self.Hypothesis("BLSURF_Parameters", [],
+ self.params = self.Hypothesis("MG_CADSurf_Parameters", [],
"libBLSURFEngine.so", UseExisting=0)
pass
return self.params
{
MESSAGE("BLSURFPlugin_BLSURF::BLSURFPlugin_BLSURF");
- _name = "BLSURF";
+ _name = "MG_CADSurf";//"BLSURF";
_shapeType = (1 << TopAbs_FACE); // 1 bit /shape type
_compatibleHypothesis.push_back(BLSURFPlugin_Hypothesis::GetHypType());
_compatibleHypothesis.push_back(StdMeshers_ViscousLayers2D::GetHypType());
_preCadFacesPeriodicityVector(GetDefaultPreCadFacesPeriodicityVector()),
_preCadEdgesPeriodicityVector(GetDefaultPreCadEdgesPeriodicityVector())
{
- _name = "BLSURF_Parameters";
+ _name = GetHypType();
_param_algo_dim = 2;
// _GMFFileMode = false; // GMF ascii mode
GeometricalLocalSize
};
- static const char* GetHypType() { return "BLSURF_Parameters"; }
+ static const char* GetHypType() { return "MG_CADSurf_Parameters"; }
TopoDS_Shape entryToShape(std::string entry);
GenericHypothesisCreator_i* aCreator = 0;
// Algorithms
- if (strcmp(aHypName, "BLSURF") == 0)
+ if (strcmp(aHypName, "BLSURF") == 0 ||
+ strcmp(aHypName, "MG_CADSurf") == 0 )
aCreator = new BLSURFPlugin_Creator_i<BLSURFPlugin_BLSURF_i>;
// Hypotheses
- else if (strcmp(aHypName, "BLSURF_Parameters") == 0)
+ else if (strcmp(aHypName, "BLSURF_Parameters") == 0 ||
+ strcmp(aHypName, "MG_CADSurf_Parameters") == 0 )
aCreator = new BLSURFPlugin_Creator_i<BLSURFPlugin_Hypothesis_i>;
else ;
SMESHGUI_GenericHypothesisCreator* GetHypothesisCreator( const QString& aHypType )
{
SMESHGUI_GenericHypothesisCreator* aCreator = NULL;
- if( aHypType=="BLSURF_Parameters" )
+ if( aHypType=="BLSURF_Parameters" ||
+ aHypType=="MG_CADSurf_Parameters")
aCreator = new BLSURFPluginGUI_HypothesisCreator( aHypType );
return aCreator;
}
<context>
<name>@default</name>
<message>
- <source>BLSURF_ICON_SELECT</source>
+ <source>MG_CADSurf_ICON_SELECT</source>
<translation>mesh_select_BLSURF.png</translation>
</message>
<message>
- <source>ICON_DLG_BLSURF_PARAMETERS</source>
+ <source>ICON_DLG_MG_CADSurf_PARAMETERS</source>
<translation>mesh_hypo_BLSURF.png</translation>
</message>
<message>
- <source>ICON_SMESH_TREE_ALGO_BLSURF</source>
+ <source>ICON_SMESH_TREE_ALGO_MG_CADSurf</source>
<translation>mesh_tree_algo_BLSURF.png</translation>
</message>
<message>
- <source>ICON_SMESH_TREE_HYPO_BLSURF_Parameters</source>
+ <source>ICON_SMESH_TREE_HYPO_MG_CADSurf_Parameters</source>
<translation>mesh_tree_hypo_BLSURF.png</translation>
</message>
</context>