diff --git a/doc/salome/examples/basic_operations_ex01.py b/doc/salome/examples/basic_operations_ex01.py index b9152729f..912c8eb03 100644 --- a/doc/salome/examples/basic_operations_ex01.py +++ b/doc/salome/examples/basic_operations_ex01.py @@ -22,23 +22,17 @@ box = geompy.MakeBoxTwoPnt(p0, p200) trimsize = 500. plane = geompy.MakePlane(pz, vxyz, trimsize) -# create partition objects -partition1 = geompy.MakePartition([box], [plane]) -partition2 = geompy.Partition([box], [plane]) -partition3 = geompy.MakeHalfPartition(box, plane) +# create partition +partition = geompy.MakePartition([box], [plane]) # add objects in the study id_box = geompy.addToStudy(box,"Box") id_plane = geompy.addToStudy(plane,"Plane") -id_partition1 = geompy.addToStudy(partition1,"MakePartition") -id_partition2 = geompy.addToStudy(partition2,"Partition") -id_partition3 = geompy.addToStudy(partition3,"MakeHalfPartition") +id_partition = geompy.addToStudy(partition,"Partition") # display the partition objects and the plane gg.createAndDisplayGO(id_box) gg.setDisplayMode(id_box,1) gg.createAndDisplayGO(id_plane) gg.setDisplayMode(id_plane,1) -gg.createAndDisplayGO(id_partition1) -gg.createAndDisplayGO(id_partition2) -gg.createAndDisplayGO(id_partition3) +gg.createAndDisplayGO(id_partition) diff --git a/doc/salome/gui/GEOM/images/partition1.png b/doc/salome/gui/GEOM/images/partition1.png index f2213999e..595c0ab04 100644 Binary files a/doc/salome/gui/GEOM/images/partition1.png and b/doc/salome/gui/GEOM/images/partition1.png differ diff --git a/doc/salome/gui/GEOM/input/partition.doc b/doc/salome/gui/GEOM/input/partition.doc index 48d56c036..13b98084d 100755 --- a/doc/salome/gui/GEOM/input/partition.doc +++ b/doc/salome/gui/GEOM/input/partition.doc @@ -6,9 +6,9 @@ For a detailed description of the Partition operation please refer to Main Menu select Operations - > Partition +To produce a \b Partition in the Main Menu select Operations -> Partition This operation builds a compound by intersection of several shapes with a set of tool objects or with a plane. @@ -96,20 +96,6 @@ be checked for self-intersection prior to the operation. - Other parameters are obsolete and kept only for compatibility with previous versions of SALOME. -

Intersection of a Shape and a Plane.

- -\image html partition2.png - -Arguments: Name + 1 shape to be intersected + 1 cutting plane. - -Activate \ref restore_presentation_parameters_page "Advanced options" if required. - -TUI Command: - -geompy.MakeHalfPartition(Shape, Plane), where: -- \em Shape is a source shape to be intersected by the \em Plane -- \em Plane is a tool shape, to intersect the \em Shape. - Examples: \image html partitionsn1.png "Box intersected by a plane"