Part: expose geometry clone support to python
============================================= >>> geometries = ActiveSketch.Geometry >>> geo0 = geometries[0] >>> geo0.Tag 'a2b6883e-64d6-4348-b567-8b5e0a4896a0' >>> geo1 = geo0.clone() >>> geo1.Tag 'a2b6883e-64d6-4348-b567-8b5e0a4896a0' >>> geo1.Radius = 3 >>> geo0.Tag 'a2b6883e-64d6-4348-b567-8b5e0a4896a0' >>> geo0.Radius 30.157883192724587 >>> geo1.Tag 'a2b6883e-64d6-4348-b567-8b5e0a4896a0' >>> geo1.Radius 3.0
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="PyObjectBase"
|
||||
Name="GeometryPy"
|
||||
Twin="Geometry"
|
||||
TwinPointer="Geometry"
|
||||
Include="Mod/Part/App/Geometry.h"
|
||||
Namespace="Part"
|
||||
FatherInclude="Base/PyObjectBase.h"
|
||||
<PythonExport
|
||||
Father="PyObjectBase"
|
||||
Name="GeometryPy"
|
||||
Twin="Geometry"
|
||||
TwinPointer="Geometry"
|
||||
Include="Mod/Part/App/Geometry.h"
|
||||
Namespace="Part"
|
||||
FatherInclude="Base/PyObjectBase.h"
|
||||
FatherNamespace="Base"
|
||||
Constructor="true"
|
||||
Delete="true">
|
||||
@@ -48,6 +48,11 @@ It describes the common behavior of these objects when:
|
||||
<UserDocu>Create a copy of this geometry</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="clone" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>Create a clone of this geometry with the same Tag</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Attribute Name="Construction" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Defines this geometry as a construction one which
|
||||
|
||||
Reference in New Issue
Block a user