From: eap Date: Wed, 3 Jul 2013 10:53:48 +0000 (+0000) Subject: 0022227: [CEA 827] Building a surface from a cloud of points X-Git-Tag: BR_hydro_v_0_3_1~166 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d3103e4d11592bce23de2e4b4700a2dea9d0ec7;p=modules%2Fgeom.git 0022227: [CEA 827] Building a surface from a cloud of points --- diff --git a/doc/salome/examples/advanced_geom_objs_smoothingsurface.py b/doc/salome/examples/advanced_geom_objs_smoothingsurface.py new file mode 100644 index 000000000..0ad32ced8 --- /dev/null +++ b/doc/salome/examples/advanced_geom_objs_smoothingsurface.py @@ -0,0 +1,24 @@ +import salome, GEOM +from salome.geom import geomBuilder +geompy = geomBuilder.New(salome.myStudy) + +# create a could of points +points = [ + geompy.MakeVertex( 0,0,0 ), + geompy.MakeVertex( 9,0,0 ), + geompy.MakeVertex( 0,9,0 ), + geompy.MakeVertex( 9,9,0 ), + geompy.MakeVertex( 3,3,1 ), + geompy.MakeVertex( 6,6,2 )] + +# create SmoothingSurface object +smoothingsurface = geompy.MakeSmoothingSurface( points ) + +# add object in the study +id_smoothingsurface = geompy.addToStudy(smoothingsurface,"SmoothingSurface") + +# display smoothingsurface +gg = salome.ImportComponentGUI("GEOM") +gg.createAndDisplayGO(id_smoothingsurface) + + diff --git a/doc/salome/gui/GEOM/images/smoothingsurface.png b/doc/salome/gui/GEOM/images/smoothingsurface.png new file mode 100644 index 000000000..a262282ff Binary files /dev/null and b/doc/salome/gui/GEOM/images/smoothingsurface.png differ diff --git a/doc/salome/gui/GEOM/input/creating_complex_obj.doc b/doc/salome/gui/GEOM/input/creating_complex_obj.doc index 46c4baa90..a5c6a090f 100644 --- a/doc/salome/gui/GEOM/input/creating_complex_obj.doc +++ b/doc/salome/gui/GEOM/input/creating_complex_obj.doc @@ -2,7 +2,7 @@ \page create_complex_obj_page Creating Complex Objects -New entity -> Generation submenu allows creating new geometric +New entity -> Generation sub-menu allows creating new geometric objects by modification and multiplication of the existing objects: @@ -17,4 +17,12 @@ creating a more complex trajectory object.
  • \subpage create_pipe_path_page "Restore Path" of a pipe-like shape.
  • + New entity -> Advanced sub-menu allows creating new geometric +objects using advanced algorithms: + + + */ 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 d013ef013..d4e0e0b8a 100644 --- a/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc +++ b/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc @@ -16,21 +16,7 @@ \anchor tui_creation_smoothingsurface

    Creation of SmoothingSurface

    - -\code -import geompy -import salome -gg = salome.ImportComponentGUI("GEOM") - -# create SmoothingSurface object -smoothingsurface = geompy.MakeSmoothingSurface([value]) - -# add object in the study -id_smoothingsurface = geompy.addToStudy(smoothingsurface,"SmoothingSurface") - -# display smoothingsurface -gg.createAndDisplayGO(id_smoothingsurface) -\endcode +\tui_script{advanced_geom_objs_smoothingsurface.py} */