mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
Issue 0020001: EDF 813 GEOM : PArtition , argument to get subshapes
Additional changes: fix bugs, update documentation
This commit is contained in:
parent
20a9ed535c
commit
c00bd1f476
@ -22,7 +22,7 @@ special case of \b Explode operation. </li>
|
|||||||
<li>Operations with \subpage blocks_operations_page "Blocks".</li>
|
<li>Operations with \subpage blocks_operations_page "Blocks".</li>
|
||||||
|
|
||||||
|
|
||||||
<li>\subpage restore_presentation_parameters_page "Restore presentation pareameters".
|
<li>\subpage restore_presentation_parameters_page "Restore presentation parameters".
|
||||||
This cross-operation functionality allows the resulting shape to
|
This cross-operation functionality allows the resulting shape to
|
||||||
inherit colors and subshapes from its parent shapes.</li>
|
inherit colors and subshapes from its parent shapes.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -85,6 +85,7 @@ gg.setDisplayMode(id_archimede,1)
|
|||||||
\code
|
\code
|
||||||
import geompy
|
import geompy
|
||||||
import GEOM
|
import GEOM
|
||||||
|
import SALOMEDS
|
||||||
|
|
||||||
# create a box and a cylinder
|
# create a box and a cylinder
|
||||||
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||||
|
@ -2989,7 +2989,7 @@ module GEOM
|
|||||||
* operations, where only the first argument has to be considered.
|
* operations, where only the first argument has to be considered.
|
||||||
* If theObject has only one argument shape, this flag is automatically
|
* If theObject has only one argument shape, this flag is automatically
|
||||||
* considered as True, not regarding really passed value.
|
* considered as True, not regarding really passed value.
|
||||||
* \return True in case of success, False otherwise.
|
* \return list of published sub-shapes
|
||||||
*/
|
*/
|
||||||
ListOfGO RestoreSubShapesO (in SALOMEDS::Study theStudy,
|
ListOfGO RestoreSubShapesO (in SALOMEDS::Study theStudy,
|
||||||
in GEOM_Object theObject,
|
in GEOM_Object theObject,
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
# ! documentation generation to identify certain places of this file
|
# ! documentation generation to identify certain places of this file
|
||||||
#
|
#
|
||||||
def TestAll (geompy, math):
|
def TestAll (geompy, math):
|
||||||
|
import GEOM
|
||||||
|
|
||||||
#Create base Variables
|
#Create base Variables
|
||||||
nbtimes1 = 5 #Short
|
nbtimes1 = 5 #Short
|
||||||
@ -451,4 +452,10 @@ def TestAll (geompy, math):
|
|||||||
if ind_e != ind:
|
if ind_e != ind:
|
||||||
print "Error in GetSubShape or GetSubShapeID"
|
print "Error in GetSubShape or GetSubShapeID"
|
||||||
|
|
||||||
|
# RestoreSubShapes
|
||||||
|
geompy.RestoreSubShapes(Copy)
|
||||||
|
geompy.RestoreSubShapes(RotatPnt, [], GEOM.FSM_Transformed)
|
||||||
|
geompy.RestoreSubShapes(Partition, [Box])
|
||||||
|
geompy.RestoreSubShapes(Partition1)
|
||||||
|
|
||||||
print "DONE"
|
print "DONE"
|
||||||
|
@ -305,7 +305,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
|
|||||||
# operations, where only the first argument has to be considered.
|
# operations, where only the first argument has to be considered.
|
||||||
# If theObject has only one argument shape, this flag is automatically
|
# If theObject has only one argument shape, this flag is automatically
|
||||||
# considered as True, not regarding really passed value.
|
# considered as True, not regarding really passed value.
|
||||||
# \return True in case of success, False otherwise.
|
# \return list of published sub-shapes
|
||||||
#
|
#
|
||||||
# @ref tui_restore_prs_params "Example"
|
# @ref tui_restore_prs_params "Example"
|
||||||
def RestoreSubShapes (self, theObject, theArgs=[],
|
def RestoreSubShapes (self, theObject, theArgs=[],
|
||||||
|
Loading…
Reference in New Issue
Block a user