From 2d3103e4d11592bce23de2e4b4700a2dea9d0ec7 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 3 Jul 2013 10:53:48 +0000 Subject: [PATCH] 0022227: [CEA 827] Building a surface from a cloud of points --- .../advanced_geom_objs_smoothingsurface.py | 24 ++++++++++++++++++ .../gui/GEOM/images/smoothingsurface.png | Bin 0 -> 7927 bytes .../gui/GEOM/input/creating_complex_obj.doc | 10 +++++++- .../gui/GEOM/input/tui_advanced_geom_objs.doc | 16 +----------- 4 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 doc/salome/examples/advanced_geom_objs_smoothingsurface.py create mode 100644 doc/salome/gui/GEOM/images/smoothingsurface.png 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 0000000000000000000000000000000000000000..a262282ff10d94d7d3f25ccaac35789afa6b449f GIT binary patch literal 7927 zcmc(kcTkgC+wQXk#k~=btx^RvfJ#vW1e6w)8bOdE2na|op$Y*Kn%Ia`>0l_*K}sm0 z28c@UQlta|(n1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Cm14wVW-dAUXwmYP*%lk`s6tXQMfK&PU$OeU zWa|#1Eh$?eJUHr>lBS*%_cdYxBRfOVL#h2MuQR194N4dXEyX5ywJ%Nx0t-MZ7DYm( zZo_RntWnml@2V-MRHan^!Z-od#8;#SMoXfMcL?@)$F=*K! zPVquRKQFRuL1r^IziIelK`&okak01_TPHDApnJuuEecwIVPQXW^2UiOlOv}4SaxBn* zUXhmlEH*Q)XMhhqG7bB-J98e|p$I>c!&*M$WZLJAu87%IOkIh|k{;%#sqodUuQ#To zPMoss33UBLM;%EEo+lI1VrMV7>-kbr`dj0@C+6iY#y9QpG^Y+R;$B6Oy{^Ih7kY16~r_k^F^h99}25erT zPs(>i)<&}m33GIBA@;C(w8i+l7GWe1F6YydoK^*v4SiCxS1`wqQFf9D{MvfTNscg% zJu~HBfp+KtIlVfU-ONiils~Nh;vMn(6Py$D3vA09aCh>p8|eECl8{WU?8=Ro?ydTA7Z#l0!(H0cv*+&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: + +
      +
    • \subpage create_smoothingsurface_page "Smoothing surface" from a + cloud of points.
    • +
    + */ 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} */