3 \page tui_defining_blsurf_hypotheses_page Defining Hypotheses for BLSurf Algorithm
6 <h2>Construction of Mesh using BLSurf algorithm</h2>
14 box = geompy.MakeBoxDXDYDZ(200., 200., 200.)
15 geompy.addToStudy(box, "box")
18 Face_1 = geompy.SubShapeAllSorted(box, geompy.ShapeType["FACE"])[0]
19 Edge_1 = geompy.SubShapeAllSorted(box, geompy.ShapeType["EDGE"])[0]
20 Vertex_1 = geompy.SubShapeAllSorted(box, geompy.ShapeType["VERTEX"])[0]
22 # create a mesh on the box
23 blsurfMesh = smesh.Mesh(box,"box: BLSurf mesh")
25 # create a BLSurf algorithm for faces
26 BLSURF = blsurfMesh.Triangle(algo=smesh.BLSURF)
28 # get BLSurf algorithm hypothesis
29 BLSURF_Parameters = BLSURF.Parameters()
31 # set physical mesh to 2 = Size Map
32 BLSURF_Parameters.SetPhysicalMesh( 2 )
34 # set global mesh size
35 BLSURF_Parameters.SetPhySize( 34.641 )
38 BLSURF_Parameters.SetSizeMap(Face_1, 'def f(u,v): return 10' )
40 BLSURF_Parameters.SetSizeMap(Edge_1, 'def f(t): return 5' )
41 # set size on Vertex_1
42 BLSURF_Parameters.SetSizeMap(Vertex_1, 'def f(): return 2' )