mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 01:30:36 +05:00
0022227: [CEA 827] Building a surface from a cloud of points
This commit is contained in:
parent
5f7358def1
commit
2d3103e4d1
24
doc/salome/examples/advanced_geom_objs_smoothingsurface.py
Normal file
24
doc/salome/examples/advanced_geom_objs_smoothingsurface.py
Normal 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)
|
||||||
|
|
||||||
|
|
BIN
doc/salome/gui/GEOM/images/smoothingsurface.png
Normal file
BIN
doc/salome/gui/GEOM/images/smoothingsurface.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
\page create_complex_obj_page Creating Complex Objects
|
\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:
|
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>
|
<li>\subpage create_pipe_path_page "Restore Path" of a pipe-like shape.</li>
|
||||||
</ul>
|
</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>
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
@ -16,21 +16,7 @@
|
|||||||
|
|
||||||
\anchor tui_creation_smoothingsurface
|
\anchor tui_creation_smoothingsurface
|
||||||
<br><h2>Creation of SmoothingSurface</h2>
|
<br><h2>Creation of SmoothingSurface</h2>
|
||||||
|
\tui_script{advanced_geom_objs_smoothingsurface.py}
|
||||||
\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
|
|
||||||
|
|
||||||
<!--@@ insert new functions before this line @@ do not remove this line @@-->
|
<!--@@ insert new functions before this line @@ do not remove this line @@-->
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user