0022227: [CEA 827] Building a surface from a cloud of points

This commit is contained in:
eap 2013-07-03 10:53:48 +00:00
parent 5f7358def1
commit 2d3103e4d1
4 changed files with 34 additions and 16 deletions

View File

@ -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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View 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>
*/

View File

@ -16,21 +16,7 @@
\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 @@-->
*/