\page blsurfplugin_python_interface_page Python Interface
-Python package \ref BLSURFPluginDC "BLSURFPlugin" defines several classes, destined for creation of the 2D meshes.
+Python package BLSURFPluginDC defines several classes, destined for creation of the 2D meshes.
-Documentation for BLSURFPlugin package is available in linear form grouped by classes, declared in the BLSURFPluginDC.py file.
+BLSURF meshing plugin dynamically adds several methods to the smesh.Mesh class to create meshing algorithms.
-Below you can see an example of usage of the BLSURFPlugin package for mesh generation:
+Below you can see an example of usage of the BLSURFPlugin Python API for mesh generation:
\anchor tui_blsurf
-<h2>Construction of Mesh using BLSurf algorithm</h2>
-<h3>Basic hypothesis</h3>
+
+\section blsurf_construct_mesh Construction of Mesh using BLSurf algorithm
+
+\subsection blsurf_construct_mesh_basic_hypo Basic hypothesis
\code
import geompy
import smesh
# End of script
\endcode
-<h3>Adding sizemaps</h3>
+\subsection blsurf_construct_mesh_sizemaps Adding sizemaps
\code
# optional - set physical mesh to 2 = Size Map
algo2d.SetPhysicalMesh( 2 )
# End of script
\endcode
-<h3>Adding enforced vertices</h3>
+\subsection blsurf_construct_mesh_enforced_vertices Adding enforced vertices
\code
-
# Add enforced vertex for Face_1 on (50, 50, 50)
# The projection coordinates will be (50, 50, 0)
algo2d.SetEnforcedVertex(Face_1, 50, 50, 50)
blsurfMesh.Compute()
# End of script
-
\endcode
-<h3>Adding an attractor</h3>
+\subsection blsurf_construct_mesh_attractor Adding an attractor
\code
-
# Add an attractor on Face_2, which shape is Wire_1
# The size on Wire_1 is 1 and will grow until a maximum of 36.641 (physical size set above)
blsurfMesh.Compute()
# End of script
-
\endcode
-<h3>Using internal vertices</h3>
+\subsection blsurf_construct_mesh_internal_vertices Using internal vertices
\code
-
# Creating a geometry containing internal vertices
Face_3 = geompy.MakeFaceHW(1, 1, 1)
Vertex_2 = geompy.MakeVertex(0.2, 0.2, 0)