- print "-------------------------- add hypothesis to shape"
- mesh = smesh.CreateMesh(shape_mesh)
-
- ret = mesh.AddHypothesis(shape_mesh, algoReg)
- print "Add Regular_1D algo .... ",
- print ret
-
- if (nbseg is not None):
- ret = mesh.AddHypothesis(shape_mesh, hypNbSeg1)
- print "Add Number Of Segements algo .... ",
- print ret
-
- if (len is not None):
- ret = mesh.AddHypothesis(shape_mesh,hypLength1)
- print "Add Local Length algo .... ",
- print ret
-
- ret = mesh.AddHypothesis(shape_mesh, algoMef)
- print "Add MEFISTO_2D algo....",
- print ret
-
- if (area == "LengthFromEdges"):
- ret = mesh.AddHypothesis( shape_mesh, hypLengthFromEdges) # length from edge
- print "Add Length From Edges algo .... ",
- print ret
- else:
- ret = mesh.AddHypothesis(shape_mesh, hypArea1)
- print "Add Max Triangle Area algo .... ",
- print ret
-