From: dmv Date: Wed, 2 Jun 2010 11:39:58 +0000 (+0000) Subject: 0020893: EDF 1415: an example is missing in SMESH documentation X-Git-Tag: V5_1_4~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f2b9cb04d0fdcc087b8da64bc825ac83f978249;p=modules%2Fsmesh.git 0020893: EDF 1415: an example is missing in SMESH documentation --- diff --git a/doc/salome/gui/SMESH/input/tui_modifying_meshes.doc b/doc/salome/gui/SMESH/input/tui_modifying_meshes.doc index b0eaca1fb..2e8f75291 100644 --- a/doc/salome/gui/SMESH/input/tui_modifying_meshes.doc +++ b/doc/salome/gui/SMESH/input/tui_modifying_meshes.doc @@ -22,6 +22,26 @@ if new_id == 0: print "KO node addition." else: print "New Node has been added with ID ", new_id \endcode +
+\anchor tui_add_0DElement +

Add 0D Element

+ +\code +import SMESH_mechanic + +mesh = SMESH_mechanic.mesh + +# add node +node_id = mesh.AddNode(50, 10, 0) + +# add 0D Element +new_id = mesh.Add0DElement(node_id) + +print "" +if new_id == 0: print "KO node addition." +else: print "New 0D Element has been added with ID ", new_id +\endcode +
\anchor tui_add_edge

Add Edge