X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FGEOM%2Finput%2Ftui_advanced_geom_objs.doc;h=d4e0e0b8aa9ef591c180257b67877764b4b892bd;hb=97d9c2c6b1eb1b8c37b74e9409ebdb89c42c8c27;hp=4b9047f34e4d586173703070b70acc6b2cabbea2;hpb=73555c78ebf12a1fdb85157b8e7934ad566ae90a;p=modules%2Fgeom.git diff --git a/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc b/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc index 4b9047f34..d4e0e0b8a 100644 --- a/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc +++ b/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc @@ -4,117 +4,19 @@ \anchor tui_creation_pipetshape

Creation of PipeTShape

- -\code -import geompy -import salome -gg = salome.ImportComponentGUI("GEOM") - -# create PipeTShape object -pipetshape = geompy.MakePipeTShape(80.0, 20.0, 200.0, 50.0, 20.0, 200.0) - -# add object in the study -id_pipetshape = geompy.addToStudy(pipetshape[0],"PipeTShape") -# add groups in the study -for g in pipetshape[1:]: - geompy.addToStudyInFather(pipetshape[0], g, g.GetName()) - -# Create junction vertices -P1 = geompy.MakeVertex(0.0, 0.0, 0.0) -P2 = geompy.MakeVertex(400.0, 0.0, 0.0) -P3 = geompy.MakeVertex(200.0, 0.0, 200.0) - -# create PipeTShape object with position -pipetshape_position = geompy.MakePipeTShape(80.0, 20.0, 200.0, 50.0, 20.0, 200.0, True, P1, P2, P3) - -# add object in the study -id_pipetshape_position = geompy.addToStudy(pipetshape_position[0],"PipeTShape_position") -# add groups in the study -for g in pipetshape_position[1:]: - geompy.addToStudyInFather(pipetshape_position[0], g, g.GetName()) - -# create PipeTShape with chamfer object -pipetshapechamfer = geompy.MakePipeTShapeChamfer(80.0, 20.0, 200.0, 50.0, 20.0, 200.0, 20.0, 20.0) - -# add object in the study -id_pipetshapechamfer = geompy.addToStudy(pipetshapechamfer[0],"PipeTShapeChamfer") -# add groups in the study -for g in pipetshapechamfer[1:]: - geompy.addToStudyInFather(pipetshapechamfer[0], g, g.GetName()) - -# create PipeTShape with chamfer object with position -pipetshapechamfer_position = geompy.MakePipeTShapeChamfer(80.0, 20.0, 200.0, 50.0, 20.0, 200.0, 20.0, 20.0, True, P1, P2, P3) - -# add object in the study -id_pipetshapechamfer_position = geompy.addToStudy(pipetshapechamfer_position[0],"PipeTShapeChamfer_position") -# add groups in the study -for g in pipetshapechamfer_position[1:]: - geompy.addToStudyInFather(pipetshapechamfer_position[0], g, g.GetName()) - -# create PipeTShape with fillet object -pipetshapefillet = geompy.MakePipeTShapeFillet(80.0, 20.0, 200.0, 50.0, 20.0, 200.0, 5.0) - -# add object in the study -id_pipetshapefillet = geompy.addToStudy(pipetshapefillet[0],"PipeTShapeFillet") -# add groups in the study -for g in pipetshapefillet[1:]: - geompy.addToStudyInFather(pipetshapefillet[0], g, g.GetName()) - -# create PipeTShape with fillet object with position -pipetshapefillet_position = geompy.MakePipeTShapeFillet(80.0, 20.0, 200.0, 50.0, 20.0, 200.0, 5.0, True, P1, P2, P3) - -# add object in the study -id_pipetshapefillet_position = geompy.addToStudy(pipetshapefillet_position[0],"PipeTShapeFillet_position") -# add groups in the study -for g in pipetshapefillet_position[1:]: - geompy.addToStudyInFather(pipetshapefillet_position[0], g, g.GetName()) - - -# display pipetshapes -gg.createAndDisplayGO(id_pipetshape) -gg.createAndDisplayGO(id_pipetshape_position) -gg.createAndDisplayGO(id_pipetshapechamfer) -gg.createAndDisplayGO(id_pipetshapechamfer_position) -gg.createAndDisplayGO(id_pipetshapefillet) -gg.createAndDisplayGO(id_pipetshapefillet_position) - -\endcode +\tui_script{advanced_geom_objs_ex01.py} \anchor tui_creation_divideddisk

Creation of DividedDisk

- -\code -import geompy -import salome -gg = salome.ImportComponentGUI("GEOM") - -# create DividedDisk object -divideddisk = geompy.MakeDividedDisk(100, 50) - -# add object in the study -id_divideddisk = geompy.addToStudy(divideddisk,"DividedDisk") - -# display divideddisk -gg.createAndDisplayGO(id_divideddisk) -\endcode +\tui_script{advanced_geom_objs_ex02.py} \anchor tui_creation_dividedcylinder

Creation of DividedCylinder

+\tui_script{advanced_geom_objs_ex03.py} -\code -import geompy -import salome -gg = salome.ImportComponentGUI("GEOM") - -# create DividedCylinder object -dividedcylinder = geompy.MakeDividedCylinder(100, 300) - -# add object in the study -id_dividedcylinder = geompy.addToStudy(dividedcylinder,"DividedCylinder") - -# display dividedcylinder -gg.createAndDisplayGO(id_dividedcylinder) -\endcode +\anchor tui_creation_smoothingsurface +

Creation of SmoothingSurface

+\tui_script{advanced_geom_objs_smoothingsurface.py} */