Salome HOME
52976: Find Elements by Point - All does not find Ball element
[modules/smesh.git] / doc / salome / examples / defining_hypotheses_ex05.py
index fcf03d0d65d7a7c6febf9c2eac6d5cbe11d3f1e9..204496ce039b7803cfda6d7611052b4ce996b094 100644 (file)
@@ -1,8 +1,14 @@
 # Maximum Element Area
 
-import geompy
-import smesh
-import salome 
+import salome
+salome.salome_init()
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New(salome.myStudy)
+
+import SMESH, SALOMEDS
+from salome.smesh import smeshBuilder
+smesh =  smeshBuilder.New(salome.myStudy)
 
 # create a face
 px   = geompy.MakeVertex(100., 0.  , 0.  )
@@ -31,7 +37,7 @@ algo.NumberOfSegments(20)
 # assign triangulation algorithm
 algo = tria_mesh.Triangle()
 
-# apply "Max Element Area" hypothesis to each triangle
+# assign "Max Element Area" hypothesis
 algo.MaxElementArea(100)
 
 # compute the mesh