X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FSMESH%2Finput%2Ftui_cartesian_algo.doc;h=4cc1ec654f4103892bc67e3a6e74df69ac39fa84;hp=3eb7f0fe2f16756effd5dcdb397534fe95c4c3b4;hb=20c126bc220757c06b5576f71ed6f34ae85e3e40;hpb=1b57300c826e4cb17d9a40124991a14eabb9eee8 diff --git a/doc/salome/gui/SMESH/input/tui_cartesian_algo.doc b/doc/salome/gui/SMESH/input/tui_cartesian_algo.doc index 3eb7f0fe2..4cc1ec654 100644 --- a/doc/salome/gui/SMESH/input/tui_cartesian_algo.doc +++ b/doc/salome/gui/SMESH/input/tui_cartesian_algo.doc @@ -1,49 +1,7 @@ /*! \page tui_cartesian_algo Usage of Body Fitting algorithm - -\code -from smesh import * -SetCurrentStudy(salome.myStudy) - -# create a sphere -sphere = geompy.MakeSphereR( 50 ) -geompy.addToStudy( sphere, "sphere" ) - -# create a mesh and assign a "Body Fitting" algo -mesh = Mesh( sphere ) -cartAlgo = mesh.BodyFitted() - -# define a cartesian grid using Coordinates -coords = range(-100,100,10) -cartHyp = cartAlgo.SetGrid( coords,coords,coords, 1000000) - -# compute the mesh -mesh.Compute() -print "nb hexahedra",mesh.NbHexas() -print "nb tetrahedra",mesh.NbTetras() -print "nb polyhedra",mesh.NbPolyhedrons() -print - -# define the grid by setting constant spacing -cartHyp = cartAlgo.SetGrid( "10","10","10", 1000000) - -mesh.Compute() -print "nb hexahedra",mesh.NbHexas() -print "nb tetrahedra",mesh.NbTetras() -print "nb polyhedra",mesh.NbPolyhedrons() - - -# define the grid by setting different spacing in 2 sub-ranges of geometry -spaceFuns = ["5","10+10*t"] -cartAlgo.SetGrid( [spaceFuns, [0.5]], [spaceFuns, [0.5]], [spaceFuns, [0.25]], 10 ) - -mesh.Compute() -print "nb hexahedra",mesh.NbHexas() -print "nb tetrahedra",mesh.NbTetras() -print "nb polyhedra",mesh.NbPolyhedrons() -print - -\endcode +\include cartesian_algo.py +Download this script */