mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
0022857: EDF GEOM 7167: MakeHalfPartition documentation
- Additionally update documentation
This commit is contained in:
parent
d34e7eebf2
commit
fdcbb78132
@ -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)
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 26 KiB |
@ -6,9 +6,9 @@ For a detailed description of the Partition operation please refer to <a href="S
|
||||
It provides a general review of the Partition and Boolean operations algorithms, describes the usage methodology and highlights
|
||||
major limitations of these operations.
|
||||
|
||||
Perhaps you also ask yourself : \ref partition_explanation "What's the difference between partition, compounds and fuse operation ?"
|
||||
Perhaps you also ask yourself : \ref partition_explanation "What's the difference between partition, compounds and fuse operation?"
|
||||
|
||||
To produce a \b Partition in the <b>Main Menu</b> select <b>Operations - > Partition</b>
|
||||
To produce a \b Partition in the <b>Main Menu</b> select <b>Operations -> Partition</b>
|
||||
|
||||
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.
|
||||
|
||||
<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>
|
||||
|
||||
\image html partitionsn1.png "Box intersected by a plane"
|
||||
|
Loading…
Reference in New Issue
Block a user