1 # Usage of Segments around Vertex algorithm
3 # for meshing a box with quadrangles with refinement near vertices
6 salome.salome_init_without_session()
7 from salome.geom import geomBuilder
8 geompy = geomBuilder.New()
9 from salome.smesh import smeshBuilder
10 smesh = smeshBuilder.New()
13 box = geompy.MakeBoxDXDYDZ( 10, 10, 10 )
16 mesh = smesh.Mesh( box )
18 # define quadrangle meshing
19 algo1d = mesh.Segment()
20 algo1d.LocalLength( 1. )
23 # add Hexahedron algo to assure that there are no triangles
26 # define refinement near vertices
27 algo1d.LengthNearVertex( 0.2 )