mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
Fix of bug 0020420: Bad links in Documentation
This commit is contained in:
parent
ab4a0f0a87
commit
4612039b46
29
doc/salome/gui/GEOM/input/tui_notebook_geom.doc
Normal file
29
doc/salome/gui/GEOM/input/tui_notebook_geom.doc
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*!
|
||||||
|
|
||||||
|
\page tui_notebook_geom_page Using SALOME NoteBook
|
||||||
|
|
||||||
|
\anchor tui_notebook_geom
|
||||||
|
|
||||||
|
\code
|
||||||
|
import geompy
|
||||||
|
import salome
|
||||||
|
import salome_notebook
|
||||||
|
gg = salome.ImportComponentGUI("GEOM")
|
||||||
|
|
||||||
|
# set variables
|
||||||
|
notebook = salome_notebook.notebook
|
||||||
|
notebook.set("Length", 150)
|
||||||
|
notebook.set("Width", 100)
|
||||||
|
|
||||||
|
# create box
|
||||||
|
box = geompy.MakeBoxDXDYDZ("Length", "Width", 200)
|
||||||
|
|
||||||
|
# add object in the study
|
||||||
|
id_box = geompy.addToStudy(box,"Box")
|
||||||
|
|
||||||
|
# display the boxes
|
||||||
|
gg.createAndDisplayGO(id_box)
|
||||||
|
gg.setDisplayMode(id_box,1)
|
||||||
|
\endcode
|
||||||
|
|
||||||
|
*/
|
Loading…
Reference in New Issue
Block a user