X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fdefining_hypotheses_ex10.py;h=c55af79dfcd13ab87caea8a868fafd0529a07f00;hb=560f8b2d0c2a7fdb4047f981cfac56ed3629bc1a;hp=115abfadfbc0289e4028f143703c0728dc7b2b93;hpb=1a88a8f6658e4663f7bacfd6be57b7a3cbaa7248;p=modules%2Fsmesh.git diff --git a/doc/salome/examples/defining_hypotheses_ex10.py b/doc/salome/examples/defining_hypotheses_ex10.py index 115abfadf..c55af79df 100644 --- a/doc/salome/examples/defining_hypotheses_ex10.py +++ b/doc/salome/examples/defining_hypotheses_ex10.py @@ -6,11 +6,11 @@ import salome salome.salome_init() import GEOM from salome.geom import geomBuilder -geompy = geomBuilder.New(salome.myStudy) +geompy = geomBuilder.New() import SMESH, SALOMEDS from salome.smesh import smeshBuilder -smesh = smeshBuilder.New(salome.myStudy) +smesh = smeshBuilder.New() # Prepare geometry @@ -52,7 +52,7 @@ src_mesh.Triangle(f1) # triangular sub-mesh src_mesh.Compute() -# Mesh the box using projection algoritms +# Mesh the box using projection algorithms # Define the same global 1D and 2D hypotheses tgt_mesh = smesh.Mesh(box, "Target mesh") @@ -80,5 +80,5 @@ proj3D = tgt_mesh.Projection3D() proj3D.SourceShape3D( box, src_mesh, v1F1, v1F2, v2F1, v2F2 ) tgt_mesh.Compute() -# Move the source mesh to visualy compare the two meshes +# Move the source mesh to visually compare the two meshes src_mesh.TranslateObject( src_mesh, smesh.MakeDirStruct( 210, 0, 0 ), Copy=False)