0022857: EDF GEOM 7167: MakeHalfPartition documentation

- Additionally update documentation
This commit is contained in:
vsr 2015-03-02 18:42:11 +03:00
parent d34e7eebf2
commit fdcbb78132
3 changed files with 6 additions and 26 deletions

View File

@ -22,23 +22,17 @@ box = geompy.MakeBoxTwoPnt(p0, p200)
trimsize = 500. trimsize = 500.
plane = geompy.MakePlane(pz, vxyz, trimsize) plane = geompy.MakePlane(pz, vxyz, trimsize)
# create partition objects # create partition
partition1 = geompy.MakePartition([box], [plane]) partition = geompy.MakePartition([box], [plane])
partition2 = geompy.Partition([box], [plane])
partition3 = geompy.MakeHalfPartition(box, plane)
# add objects in the study # add objects in the study
id_box = geompy.addToStudy(box,"Box") id_box = geompy.addToStudy(box,"Box")
id_plane = geompy.addToStudy(plane,"Plane") id_plane = geompy.addToStudy(plane,"Plane")
id_partition1 = geompy.addToStudy(partition1,"MakePartition") id_partition = geompy.addToStudy(partition,"Partition")
id_partition2 = geompy.addToStudy(partition2,"Partition")
id_partition3 = geompy.addToStudy(partition3,"MakeHalfPartition")
# display the partition objects and the plane # display the partition objects and the plane
gg.createAndDisplayGO(id_box) gg.createAndDisplayGO(id_box)
gg.setDisplayMode(id_box,1) gg.setDisplayMode(id_box,1)
gg.createAndDisplayGO(id_plane) gg.createAndDisplayGO(id_plane)
gg.setDisplayMode(id_plane,1) gg.setDisplayMode(id_plane,1)
gg.createAndDisplayGO(id_partition1) gg.createAndDisplayGO(id_partition)
gg.createAndDisplayGO(id_partition2)
gg.createAndDisplayGO(id_partition3)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -96,20 +96,6 @@ be checked for self-intersection prior to the operation.
- Other parameters are obsolete and kept only for compatibility with - Other parameters are obsolete and kept only for compatibility with
previous versions of SALOME. previous versions of SALOME.
<br><h2>Intersection of a Shape and a Plane.</h2>
\image html partition2.png
<b>Arguments:</b> Name + 1 shape to be intersected + 1 cutting plane.
Activate \ref restore_presentation_parameters_page "Advanced options" if required.
<b>TUI Command:</b>
<em>geompy.MakeHalfPartition(Shape, Plane)</em>, 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.
<b>Examples:</b> <b>Examples:</b>
\image html partitionsn1.png "Box intersected by a plane" \image html partitionsn1.png "Box intersected by a plane"