]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0022227: [CEA 827] Building a surface from a cloud of points
authoreap <eap@opencascade.com>
Wed, 3 Jul 2013 10:53:48 +0000 (10:53 +0000)
committereap <eap@opencascade.com>
Wed, 3 Jul 2013 10:53:48 +0000 (10:53 +0000)
doc/salome/examples/advanced_geom_objs_smoothingsurface.py [new file with mode: 0644]
doc/salome/gui/GEOM/images/smoothingsurface.png [new file with mode: 0644]
doc/salome/gui/GEOM/input/creating_complex_obj.doc
doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc

diff --git a/doc/salome/examples/advanced_geom_objs_smoothingsurface.py b/doc/salome/examples/advanced_geom_objs_smoothingsurface.py
new file mode 100644 (file)
index 0000000..0ad32ce
--- /dev/null
@@ -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 (file)
index 0000000..a262282
Binary files /dev/null and b/doc/salome/gui/GEOM/images/smoothingsurface.png differ
index 46c4baa908a30d02b87924a4f963311f575e66e5..a5c6a090f8a8b788db565d032d0b71aca136642a 100644 (file)
@@ -2,7 +2,7 @@
 
 \page create_complex_obj_page Creating Complex Objects
 
-<b>New entity -> Generation</b> submenu allows creating new geometric
+<b>New entity -> Generation</b> 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.</li>
 <li>\subpage create_pipe_path_page "Restore Path" of a pipe-like shape.</li>
 </ul>
 
+<b> New entity -> Advanced </b> sub-menu allows creating new geometric
+objects using advanced algorithms: 
+
+<ul>
+<li>\subpage create_smoothingsurface_page "Smoothing surface" from a
+  cloud of points. </li> 
+</ul>
+
 */
index d013ef01306b4fdf1ea8a3871c8ff673dade3afe..d4e0e0b8aa9ef591c180257b67877764b4b892bd 100644 (file)
 
 \anchor tui_creation_smoothingsurface
 <br><h2>Creation of SmoothingSurface</h2>
-
-\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}
 
 <!--@@ insert new functions before this line @@ do not remove this line @@-->
 */