1 # Usage of Segments around Vertex algorithm
3 # for meshing a box with quadrangles with refinement near vertices
6 salome.salome_init_without_session()
8 from salome.geom import geomBuilder
9 from salome.smesh import smeshBuilder
11 geom_builder = geomBuilder.New()
12 smesh_builder = smeshBuilder.New()
15 box = geom_builder.MakeBoxDXDYDZ( 10, 10, 10 )
18 mesh = smesh_builder.Mesh( box )
20 # define quadrangle meshing
21 algo1d = mesh.Segment()
22 algo1d.LocalLength( 1. )
25 # add Hexahedron algo to assure that there are no triangles
28 # define refinement near vertices
29 algo1d.LengthNearVertex( 0.2 )