From 069f3225b84754ece74abfb69c77320b8d76a569 Mon Sep 17 00:00:00 2001 From: skv Date: Thu, 27 Nov 2014 16:09:50 +0300 Subject: [PATCH] Implementation of python interface --- src/GEOM_SWIG/geomBuilder.py | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index 83c2e34b0..310674111 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -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, -- 2.39.2