mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
23 lines
447 B
Python
23 lines
447 B
Python
# Add Node
|
|
|
|
|
|
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)
|
|
import salome_notebook
|
|
|
|
|
|
mesh = smesh.Mesh()
|
|
|
|
# add node
|
|
new_id = mesh.AddNode(50, 10, 0)
|
|
print ""
|
|
if new_id == 0: print "KO node addition."
|
|
else: print "New Node has been added with ID ", new_id
|