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:
import salome
salome.salome_init()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
box = geompy.MakeBoxDXDYDZ(200., 200., 200.)
geompy.addToStudy(box, "box")
hybridMesh = smesh.Mesh(box,"box: MG-Hybrid and BLSurf mesh")
BLSURF = hybridMesh.Triangle(algo=smeshBuilder.BLSURF)
HYBRID = hybridMesh.Tetrahedron(algo=smeshBuilder.HYBRID)
hybridMesh.Compute()
Download this script
Back to top