mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 22:10:34 +05:00
EDF 2281 : Add 2 primitives for hexa mesh
- Modification of the examples for MakeDividedDisk and MakeDividedCylinder.
This commit is contained in:
parent
7a313facac
commit
67c0072721
@ -86,16 +86,17 @@ gg.createAndDisplayGO(id_pipetshapefillet_position)
|
|||||||
\code
|
\code
|
||||||
import geompy
|
import geompy
|
||||||
import salome
|
import salome
|
||||||
|
import GEOM
|
||||||
gg = salome.ImportComponentGUI("GEOM")
|
gg = salome.ImportComponentGUI("GEOM")
|
||||||
|
|
||||||
# create DividedDisk object
|
# create DividedDisk object
|
||||||
divideddisk = geompy.MakeDividedDisk(100, 50)
|
divideddisk = geompy.MakeDividedDisk(100, 1, GEOM.SQUARE)
|
||||||
|
|
||||||
# add object in the study
|
# add object in the study
|
||||||
id_divideddisk = geompy.addToStudy(divideddisk,"DividedDisk")
|
id_divideddisk = geompy.addToStudy(divideddisk,"DividedDisk")
|
||||||
|
|
||||||
# display divideddisk
|
# display divideddisk
|
||||||
gg.createAndDisplayGO(id_divideddisk)
|
gg.createAndDisplayGO(id_divideddisk)
|
||||||
\endcode
|
\endcode
|
||||||
|
|
||||||
\anchor tui_creation_dividedcylinder
|
\anchor tui_creation_dividedcylinder
|
||||||
@ -104,16 +105,17 @@ gg.createAndDisplayGO(id_divideddisk)
|
|||||||
\code
|
\code
|
||||||
import geompy
|
import geompy
|
||||||
import salome
|
import salome
|
||||||
|
import GEOM
|
||||||
gg = salome.ImportComponentGUI("GEOM")
|
gg = salome.ImportComponentGUI("GEOM")
|
||||||
|
|
||||||
# create DividedCylinder object
|
# create DividedCylinder object
|
||||||
dividedcylinder = geompy.MakeDividedCylinder(100, 300)
|
dividedcylinder = geompy.MakeDividedCylinder(100, 300, GEOM.SQUARE)
|
||||||
|
|
||||||
# add object in the study
|
# add object in the study
|
||||||
id_dividedcylinder = geompy.addToStudy(dividedcylinder,"DividedCylinder")
|
id_dividedcylinder = geompy.addToStudy(dividedcylinder,"DividedCylinder")
|
||||||
|
|
||||||
# display dividedcylinder
|
# display dividedcylinder
|
||||||
gg.createAndDisplayGO(id_dividedcylinder)
|
gg.createAndDisplayGO(id_dividedcylinder)
|
||||||
\endcode
|
\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