mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 16:22:03 +05:00
Implementation of python interface
This commit is contained in:
parent
f4b55b9e7f
commit
069f3225b8
@ -12857,6 +12857,45 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
||||
RaiseIfFailed("AddTexture", self.InsertOp)
|
||||
return ID
|
||||
|
||||
## Transfer not topological data from one GEOM object to another.
|
||||
#
|
||||
# @param theObjectFrom the source object of non-topological data
|
||||
# @param theObjectTo the destination object of non-topological data
|
||||
# @param theFindMethod method to search sub-shapes of theObjectFrom
|
||||
# in shape theObjectTo. Possible values are: GEOM.FSM_GetInPlace,
|
||||
# GEOM.FSM_GetInPlaceByHistory and GEOM.FSM_GetInPlace_Old.
|
||||
# Other values of GEOM.find_shape_method are not supported.
|
||||
#
|
||||
# @return True in case of success; False otherwise.
|
||||
#
|
||||
# @ingroup l1_geomBuilder_auxiliary
|
||||
@ManageTransactions("InsertOp")
|
||||
def TransferData(self, theObjectFrom, theObjectTo,
|
||||
theFindMethod=GEOM.FSM_GetInPlace):
|
||||
"""
|
||||
Transfer not topological data from one GEOM object to another.
|
||||
|
||||
Parameters:
|
||||
theObjectFrom the source object of non-topological data
|
||||
theObjectTo the destination object of non-topological data
|
||||
theFindMethod method to search sub-shapes of theObjectFrom
|
||||
in shape theObjectTo. Possible values are:
|
||||
GEOM.FSM_GetInPlace, GEOM.FSM_GetInPlaceByHistory
|
||||
and GEOM.FSM_GetInPlace_Old. Other values of
|
||||
GEOM.find_shape_method are not supported.
|
||||
|
||||
Returns:
|
||||
True in case of success; False otherwise.
|
||||
|
||||
Example of usage: isOk = geompy.TransferData(theObjectFrom, theObjectTo,
|
||||
GEOM.FSM_GetInPlace)
|
||||
"""
|
||||
# Example: see GEOM_TestAll.py
|
||||
isOk = self.InsertOp.TransferData(theObjectFrom,
|
||||
theObjectTo, theFindMethod)
|
||||
RaiseIfFailed("TransferData", self.InsertOp)
|
||||
return isOk
|
||||
|
||||
## Creates a new folder object. It is a container for any GEOM objects.
|
||||
# @param Name name of the container
|
||||
# @param Father parent object. If None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user