X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FGEOM%2Finput%2Ftui_3dsketcher.doc;h=db3504a1fb877baddd51ba0f104088b43025f669;hb=797fbe2d3cd3ca353c36282da0a4c8ea45d97031;hp=4916dfce2d4037dfa69d771bfca836a015904d18;hpb=8180539548a5038e52445454e88c1a170ee64e56;p=modules%2Fgeom.git diff --git a/doc/salome/gui/GEOM/input/tui_3dsketcher.doc b/doc/salome/gui/GEOM/input/tui_3dsketcher.doc index 4916dfce2..db3504a1f 100755 --- a/doc/salome/gui/GEOM/input/tui_3dsketcher.doc +++ b/doc/salome/gui/GEOM/input/tui_3dsketcher.doc @@ -1,49 +1,6 @@ /*! \page tui_3dsketcher_page 3D Sketcher - -\code -import geompy -import salome -gg = salome.ImportComponentGUI("GEOM") - -# Create a 3D sketcher (wire) on the given points coordinates -sketcher1 = geompy.Make3DSketcher([ 0,0,0, 50,50,50, 0,50,0, 50,0,50, 10,20,100, 0,0,0 ]) - -# add object in the study -id_sketcher1 = geompy.addToStudy(sketcher1, "Sketcher1") - -# display the sketcher -gg.createAndDisplayGO(id_sketcher1) - -# Create a 3D sketcher (wire) with Sketcher3D interface - -# get the interface instance -sk = geompy.Sketcher3D() - -# add three points with absolute coordinates -# the first point will be the start point of sketcher -# two segments will be added by this command -sk.addPointsAbsolute(1,2,3, 7,0,0, 10,-3.5,-11) - -# add one segment, defined by two angles in "OXY" coordinate system and length -sk.addPointAnglesLength("OXY", 45, 0, 100) - -# add three points with relative coordinates -# three segments will be added by this command -sk.addPointsRelative(20,0,0, 20,0,100, -40,0,-50) - -# set to close the sketcher -sk.close() - -# obtain the sketcher result -sketcher2 = sk.wire() - -# add object in the study -id_sketcher2 = geompy.addToStudy(sketcher2, "Sketcher2") - -# display the sketcher -gg.createAndDisplayGO(id_sketcher2) -\endcode +\tui_script{3dsketcher.py} */