Salome HOME
22504: [CEA 1078] The creation of a sub-mesh UseExistingFaces suppresses the created...
[modules/smesh.git] / doc / salome / examples / use_existing_faces.py
index 631316444d67214004047bdede95a6c717a22312..c4b95fdafd945440e9733368422c9f6c32f90760 100644 (file)
@@ -1,4 +1,4 @@
-# Use existing faces algorithm
+# Usage of "Use Faces to be Created Manually" algorithm
 
 
 import salome
@@ -109,8 +109,8 @@ mesh.Compute()
 
 # compute 2D mesh
 mesh.Quadrangle()
-mesh.UseExistingFaces(f1) # UseExistingFaces() allows using my2DMeshing()
-mesh.UseExistingFaces(f2)
+mesh.UseExistingFaces(f1) # UseExistingFaces() allows using my2DMeshing();
+mesh.UseExistingFaces(f2) # assign UseExistingFaces() BEFORE calling my2DMeshing()!
 my2DMeshing( f1 )
 my2DMeshing( f2 )
 assert mesh.Compute()