X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fhexoticdemo.py;fp=doc%2Fsalome%2Fexamples%2Fhexoticdemo.py;h=de81e9b871d63b244e95d7dcb23db42d7dc79d32;hb=932bd9377831fa2900e8b7d751635400ed33583d;hp=c898c6adf52843cb0c2a011f84c874d404c142aa;hpb=56eb08a1a6d0e802a5089d114a50ea8558915588;p=plugins%2Fhexoticplugin.git diff --git a/doc/salome/examples/hexoticdemo.py b/doc/salome/examples/hexoticdemo.py index c898c6a..de81e9b 100644 --- a/doc/salome/examples/hexoticdemo.py +++ b/doc/salome/examples/hexoticdemo.py @@ -19,11 +19,10 @@ 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) @@ -33,23 +32,23 @@ sphere = geompy.MakeSphereR(100.) geompy.addToStudy(sphere, "sphere") # create a mesh on the sphere -hexoticMesh = smesh.Mesh(sphere,"sphere: BLSurf and Hexotic mesh") +mghexaMesh = smesh.Mesh(sphere,"sphere: MG-CADSurf and MG-Hexa mesh") -# create a BLSurf algorithm for faces -BLSURF = hexoticMesh.Triangle(algo=smeshBuilder.BLSURF) -BLSURF.SetGeometricMesh( 1 ) +# create a MG-CADSurf algorithm for faces +MG_CADSurf = mghexaMesh.Triangle(algo=smeshBuilder.MG_CADSurf) +MG_CADSurf.SetGeometricMesh( 1 ) -# create a Hexotic algorithm for volumes -HEXOTIC = hexoticMesh.Hexahedron(algo=smeshBuilder.Hexotic) +# create a MG-Hexa algorithm for volumes +MG_Hexa = mghexaMesh.Hexahedron(algo=smeshBuilder.MG_Hexa) ## compute the mesh -#hexoticMesh.Compute() +#mghexaMesh.Compute() # Change the level of subdivision -HEXOTIC.SetMinMaxHexes(4, 8) +MG_Hexa.SetMinMaxHexes(4, 8) ## compute the mesh -#hexoticMesh.Compute() +#mghexaMesh.Compute() # Local size @@ -57,10 +56,10 @@ HEXOTIC.SetMinMaxHexes(4, 8) faces = geompy.SubShapeAll(sphere, geompy.ShapeType["FACE"]) # Set a local size on the face -HEXOTIC.SetMinMaxSize(10, 20) -HEXOTIC.SetSizeMap(faces[0], 10) +MG_Hexa.SetMinMaxSize(10, 20) +MG_Hexa.SetSizeMap(faces[0], 10) # compute the mesh -hexoticMesh.Compute() +mghexaMesh.Compute() # End of script