mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
0020893: EDF 1415: an example is missing in SMESH documentation
This commit is contained in:
parent
d02556c2ca
commit
4f2b9cb04d
@ -22,6 +22,26 @@ if new_id == 0: print "KO node addition."
|
||||
else: print "New Node has been added with ID ", new_id
|
||||
\endcode
|
||||
|
||||
<br>
|
||||
\anchor tui_add_0DElement
|
||||
<h3>Add 0D Element</h3>
|
||||
|
||||
\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
|
||||
|
||||
<br>
|
||||
\anchor tui_add_edge
|
||||
<h3>Add Edge</h3>
|
||||
|
Loading…
Reference in New Issue
Block a user