Python package HYBRIDPluginBuilder defines several classes, destined for creation of the 3D meshes.
HYBRID meshing plugin dynamically adds several methods to the smeshBuilder.Mesh class to create meshing algorithms.
Below you can see an example of usage of the HYBRIDPluginBuilder Python API for mesh generation:
- Construction of Mesh using MG-Hybrid algorithm
Construction of Mesh using MG-Hybrid algorithm
Example of mesh generation with HYBRID algorithm:
5 from salome.geom
import geomBuilder
6 geompy = geomBuilder.New(salome.myStudy)
9 from salome.smesh
import smeshBuilder
10 smesh = smeshBuilder.New(salome.myStudy)
13 box = geompy.MakeBoxDXDYDZ(200., 200., 200.)
14 geompy.addToStudy(box,
"box")
17 hybridMesh = smesh.Mesh(box,
"box: MG-Hybrid and BLSurf mesh")
20 BLSURF = hybridMesh.Triangle(algo=smeshBuilder.BLSURF)
21 HYBRID = hybridMesh.Tetrahedron(algo=smeshBuilder.HYBRID)
Download this script
Back to top