Skip to content

Commit d779bdf

Browse files
authored
Merge pull request #1264 from tpaviot/review/shallow_copy
Allow wrapper for ShallowCopy method
2 parents c8d5d67 + 2505a15 commit d779bdf

23 files changed

+763
-259
lines changed

src/SWIG_files/wrapper/Adaptor2d.i

+39
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,19 @@ Returns the parametric resolution corresponding to the real space resolution <r3
491491
") Resolution;
492492
virtual Standard_Real Resolution(const Standard_Real R3d);
493493

494+
/****************** ShallowCopy ******************/
495+
/**** md5 signature: b866918647453effb47966d082097526 ****/
496+
%feature("compactdefaultargs") ShallowCopy;
497+
%feature("autodoc", "Return
498+
-------
499+
opencascade::handle<Adaptor2d_Curve2d>
500+
501+
Description
502+
-----------
503+
Shallow copy of adaptor.
504+
") ShallowCopy;
505+
virtual opencascade::handle<Adaptor2d_Curve2d> ShallowCopy();
506+
494507
/****************** Trim ******************/
495508
/**** md5 signature: aa66325f9b552366d3dd9f832a9cb16d ****/
496509
%feature("compactdefaultargs") Trim;
@@ -1007,6 +1020,19 @@ No available documentation.
10071020
") Resolution;
10081021
Standard_Real Resolution(const Standard_Real R3d);
10091022

1023+
/****************** ShallowCopy ******************/
1024+
/**** md5 signature: 7526aff3b770b4e3b1eb3cc08adfb4b0 ****/
1025+
%feature("compactdefaultargs") ShallowCopy;
1026+
%feature("autodoc", "Return
1027+
-------
1028+
opencascade::handle<Adaptor2d_Curve2d>
1029+
1030+
Description
1031+
-----------
1032+
Shallow copy of adaptor.
1033+
") ShallowCopy;
1034+
virtual opencascade::handle<Adaptor2d_Curve2d> ShallowCopy();
1035+
10101036
/****************** Trim ******************/
10111037
/**** md5 signature: b5ce1c7f3b02aa6680da8e9ad704acc6 ****/
10121038
%feature("compactdefaultargs") Trim;
@@ -1617,6 +1643,19 @@ Returns the parametric resolution corresponding to the real space resolution <r3
16171643
") Resolution;
16181644
Standard_Real Resolution(const Standard_Real R3d);
16191645

1646+
/****************** ShallowCopy ******************/
1647+
/**** md5 signature: 7526aff3b770b4e3b1eb3cc08adfb4b0 ****/
1648+
%feature("compactdefaultargs") ShallowCopy;
1649+
%feature("autodoc", "Return
1650+
-------
1651+
opencascade::handle<Adaptor2d_Curve2d>
1652+
1653+
Description
1654+
-----------
1655+
Shallow copy of adaptor.
1656+
") ShallowCopy;
1657+
virtual opencascade::handle<Adaptor2d_Curve2d> ShallowCopy();
1658+
16201659
/****************** Trim ******************/
16211660
/**** md5 signature: b5ce1c7f3b02aa6680da8e9ad704acc6 ****/
16221661
%feature("compactdefaultargs") Trim;

src/SWIG_files/wrapper/Adaptor2d.pyi

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Adaptor2d_Curve2d(Standard_Transient):
3737
def Parabola(self) -> gp_Parab2d: ...
3838
def Period(self) -> float: ...
3939
def Resolution(self, R3d: float) -> float: ...
40+
def ShallowCopy(self) -> Adaptor2d_Curve2d: ...
4041
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor2d_Curve2d: ...
4142
def Value(self, U: float) -> gp_Pnt2d: ...
4243

@@ -75,6 +76,7 @@ class Adaptor2d_Line2d(Adaptor2d_Curve2d):
7576
def Parabola(self) -> gp_Parab2d: ...
7677
def Period(self) -> float: ...
7778
def Resolution(self, R3d: float) -> float: ...
79+
def ShallowCopy(self) -> Adaptor2d_Curve2d: ...
7880
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor2d_Curve2d: ...
7981
def Value(self, X: float) -> gp_Pnt2d: ...
8082

@@ -122,6 +124,7 @@ class Adaptor2d_OffsetCurve(Adaptor2d_Curve2d):
122124
def Parabola(self) -> gp_Parab2d: ...
123125
def Period(self) -> float: ...
124126
def Resolution(self, R3d: float) -> float: ...
127+
def ShallowCopy(self) -> Adaptor2d_Curve2d: ...
125128
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor2d_Curve2d: ...
126129
def Value(self, U: float) -> gp_Pnt2d: ...
127130

src/SWIG_files/wrapper/Adaptor3d.i

+52
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,19 @@ Returns the parametric resolution corresponding to the real space resolution <r3
502502
") Resolution;
503503
virtual Standard_Real Resolution(const Standard_Real R3d);
504504

505+
/****************** ShallowCopy ******************/
506+
/**** md5 signature: 60c6e7da29991094d97100dbb8a8d321 ****/
507+
%feature("compactdefaultargs") ShallowCopy;
508+
%feature("autodoc", "Return
509+
-------
510+
opencascade::handle<Adaptor3d_Curve>
511+
512+
Description
513+
-----------
514+
Shallow copy of adaptor.
515+
") ShallowCopy;
516+
virtual opencascade::handle<Adaptor3d_Curve> ShallowCopy();
517+
505518
/****************** Trim ******************/
506519
/**** md5 signature: 28307ca5011d5510d72469097ddcd806 ****/
507520
%feature("compactdefaultargs") Trim;
@@ -2076,6 +2089,19 @@ No available documentation.
20762089
") Plane;
20772090
virtual gp_Pln Plane();
20782091

2092+
/****************** ShallowCopy ******************/
2093+
/**** md5 signature: 2c40a5f136e5a824520c885db1d4fa77 ****/
2094+
%feature("compactdefaultargs") ShallowCopy;
2095+
%feature("autodoc", "Return
2096+
-------
2097+
opencascade::handle<Adaptor3d_Surface>
2098+
2099+
Description
2100+
-----------
2101+
Shallow copy of adaptor.
2102+
") ShallowCopy;
2103+
virtual opencascade::handle<Adaptor3d_Surface> ShallowCopy();
2104+
20792105
/****************** Sphere ******************/
20802106
/**** md5 signature: cc119d9c2d6769252e8f267250b5802d ****/
20812107
%feature("compactdefaultargs") Sphere;
@@ -3444,6 +3470,19 @@ Returns the parametric resolution corresponding to the real space resolution <r3
34443470
") Resolution;
34453471
Standard_Real Resolution(const Standard_Real R3d);
34463472

3473+
/****************** ShallowCopy ******************/
3474+
/**** md5 signature: 1b6b0927543eab9d05e2c875c0c3efb6 ****/
3475+
%feature("compactdefaultargs") ShallowCopy;
3476+
%feature("autodoc", "Return
3477+
-------
3478+
opencascade::handle<Adaptor3d_Curve>
3479+
3480+
Description
3481+
-----------
3482+
Shallow copy of adaptor.
3483+
") ShallowCopy;
3484+
virtual opencascade::handle<Adaptor3d_Curve> ShallowCopy();
3485+
34473486
/****************** Trim ******************/
34483487
/**** md5 signature: 40a46ffe7379c6d919968b501b8343a5 ****/
34493488
%feature("compactdefaultargs") Trim;
@@ -4045,6 +4084,19 @@ Returns the parametric resolution corresponding to the real space resolution <r3
40454084
") Resolution;
40464085
Standard_Real Resolution(const Standard_Real R3d);
40474086

4087+
/****************** ShallowCopy ******************/
4088+
/**** md5 signature: 1b6b0927543eab9d05e2c875c0c3efb6 ****/
4089+
%feature("compactdefaultargs") ShallowCopy;
4090+
%feature("autodoc", "Return
4091+
-------
4092+
opencascade::handle<Adaptor3d_Curve>
4093+
4094+
Description
4095+
-----------
4096+
Shallow copy of adaptor.
4097+
") ShallowCopy;
4098+
virtual opencascade::handle<Adaptor3d_Curve> ShallowCopy();
4099+
40484100
/****************** Surface ******************/
40494101
/**** md5 signature: 36b438ec6a4fa276d7bb47e4d8b0376a ****/
40504102
%feature("compactdefaultargs") Surface;

src/SWIG_files/wrapper/Adaptor3d.pyi

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Adaptor3d_Curve(Standard_Transient):
4040
def Parabola(self) -> gp_Parab: ...
4141
def Period(self) -> float: ...
4242
def Resolution(self, R3d: float) -> float: ...
43+
def ShallowCopy(self) -> Adaptor3d_Curve: ...
4344
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor3d_Curve: ...
4445
def Value(self, U: float) -> gp_Pnt: ...
4546

@@ -180,6 +181,7 @@ class Adaptor3d_Surface(Standard_Transient):
180181
def NbVPoles(self) -> int: ...
181182
def OffsetValue(self) -> float: ...
182183
def Plane(self) -> gp_Pln: ...
184+
def ShallowCopy(self) -> Adaptor3d_Surface: ...
183185
def Sphere(self) -> gp_Sphere: ...
184186
def Torus(self) -> gp_Torus: ...
185187
def UContinuity(self) -> GeomAbs_Shape: ...
@@ -286,6 +288,7 @@ class Adaptor3d_CurveOnSurface(Adaptor3d_Curve):
286288
def Parabola(self) -> gp_Parab: ...
287289
def Period(self) -> float: ...
288290
def Resolution(self, R3d: float) -> float: ...
291+
def ShallowCopy(self) -> Adaptor3d_Curve: ...
289292
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor3d_Curve: ...
290293
def Value(self, U: float) -> gp_Pnt: ...
291294

@@ -332,6 +335,7 @@ class Adaptor3d_IsoCurve(Adaptor3d_Curve):
332335
def Parameter(self) -> float: ...
333336
def Period(self) -> float: ...
334337
def Resolution(self, R3d: float) -> float: ...
338+
def ShallowCopy(self) -> Adaptor3d_Curve: ...
335339
def Surface(self) -> Adaptor3d_Surface: ...
336340
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor3d_Curve: ...
337341
def Value(self, U: float) -> gp_Pnt: ...

src/SWIG_files/wrapper/BRepAdaptor.i

+54
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepadaptor.html"
5252
#include<TColStd_module.hxx>
5353
#include<GeomAdaptor_module.hxx>
5454
#include<Geom2dAdaptor_module.hxx>
55+
#include<Adaptor2d_module.hxx>
5556
#include<TopLoc_module.hxx>
5657
#include<Geom2d_module.hxx>
5758
#include<Message_module.hxx>
@@ -71,6 +72,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepadaptor.html"
7172
%import TColStd.i
7273
%import GeomAdaptor.i
7374
%import Geom2dAdaptor.i
75+
%import Adaptor2d.i
7476

7577
%pythoncode {
7678
from enum import IntEnum
@@ -644,6 +646,19 @@ Returns the parametric resolution.
644646
") Resolution;
645647
Standard_Real Resolution(const Standard_Real R3d);
646648

649+
/****************** ShallowCopy ******************/
650+
/**** md5 signature: 1b6b0927543eab9d05e2c875c0c3efb6 ****/
651+
%feature("compactdefaultargs") ShallowCopy;
652+
%feature("autodoc", "Return
653+
-------
654+
opencascade::handle<Adaptor3d_Curve>
655+
656+
Description
657+
-----------
658+
Shallow copy of adaptor.
659+
") ShallowCopy;
660+
virtual opencascade::handle<Adaptor3d_Curve> ShallowCopy();
661+
647662
/****************** Trim ******************/
648663
/**** md5 signature: 40a46ffe7379c6d919968b501b8343a5 ****/
649664
%feature("compactdefaultargs") Trim;
@@ -1279,6 +1294,19 @@ Returns the parametric resolution.
12791294
") Resolution;
12801295
Standard_Real Resolution(const Standard_Real R3d);
12811296

1297+
/****************** ShallowCopy ******************/
1298+
/**** md5 signature: 1b6b0927543eab9d05e2c875c0c3efb6 ****/
1299+
%feature("compactdefaultargs") ShallowCopy;
1300+
%feature("autodoc", "Return
1301+
-------
1302+
opencascade::handle<Adaptor3d_Curve>
1303+
1304+
Description
1305+
-----------
1306+
Shallow copy of adaptor.
1307+
") ShallowCopy;
1308+
virtual opencascade::handle<Adaptor3d_Curve> ShallowCopy();
1309+
12821310
/****************** Tolerance ******************/
12831311
/**** md5 signature: 9e5775014410d884d1a1adc1cd47930b ****/
12841312
%feature("compactdefaultargs") Tolerance;
@@ -1436,6 +1464,19 @@ Initialize with the pcurve of <e> on <f>.
14361464
") Initialize;
14371465
void Initialize(const TopoDS_Edge & E, const TopoDS_Face & F);
14381466

1467+
/****************** ShallowCopy ******************/
1468+
/**** md5 signature: 7526aff3b770b4e3b1eb3cc08adfb4b0 ****/
1469+
%feature("compactdefaultargs") ShallowCopy;
1470+
%feature("autodoc", "Return
1471+
-------
1472+
opencascade::handle<Adaptor2d_Curve2d>
1473+
1474+
Description
1475+
-----------
1476+
Shallow copy of adaptor.
1477+
") ShallowCopy;
1478+
virtual opencascade::handle<Adaptor2d_Curve2d> ShallowCopy();
1479+
14391480
};
14401481

14411482

@@ -2007,6 +2048,19 @@ No available documentation.
20072048
") Plane;
20082049
gp_Pln Plane();
20092050

2051+
/****************** ShallowCopy ******************/
2052+
/**** md5 signature: 0f1e5e5cc4137678a63b6cdf38f07462 ****/
2053+
%feature("compactdefaultargs") ShallowCopy;
2054+
%feature("autodoc", "Return
2055+
-------
2056+
opencascade::handle<Adaptor3d_Surface>
2057+
2058+
Description
2059+
-----------
2060+
Shallow copy of adaptor.
2061+
") ShallowCopy;
2062+
virtual opencascade::handle<Adaptor3d_Surface> ShallowCopy();
2063+
20102064
/****************** Sphere ******************/
20112065
/**** md5 signature: d13f3935ec312564a2f8ef1b299ecf9a ****/
20122066
%feature("compactdefaultargs") Sphere;

src/SWIG_files/wrapper/BRepAdaptor.pyi

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ from OCC.Core.GeomAbs import *
1111
from OCC.Core.TColStd import *
1212
from OCC.Core.GeomAdaptor import *
1313
from OCC.Core.Geom2dAdaptor import *
14+
from OCC.Core.Adaptor2d import *
1415

1516

1617
class BRepAdaptor_Array1OfCurve:
@@ -75,6 +76,7 @@ class BRepAdaptor_CompCurve(Adaptor3d_Curve):
7576
def Parabola(self) -> gp_Parab: ...
7677
def Period(self) -> float: ...
7778
def Resolution(self, R3d: float) -> float: ...
79+
def ShallowCopy(self) -> Adaptor3d_Curve: ...
7880
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor3d_Curve: ...
7981
def Value(self, U: float) -> gp_Pnt: ...
8082
def Wire(self) -> TopoDS_Wire: ...
@@ -123,6 +125,7 @@ class BRepAdaptor_Curve(Adaptor3d_Curve):
123125
def Period(self) -> float: ...
124126
def Reset(self) -> None: ...
125127
def Resolution(self, R3d: float) -> float: ...
128+
def ShallowCopy(self) -> Adaptor3d_Curve: ...
126129
def Tolerance(self) -> float: ...
127130
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor3d_Curve: ...
128131
def Trsf(self) -> gp_Trsf: ...
@@ -136,6 +139,7 @@ class BRepAdaptor_Curve2d(Geom2dAdaptor_Curve):
136139
def Edge(self) -> TopoDS_Edge: ...
137140
def Face(self) -> TopoDS_Face: ...
138141
def Initialize(self, E: TopoDS_Edge, F: TopoDS_Face) -> None: ...
142+
def ShallowCopy(self) -> Adaptor2d_Curve2d: ...
139143

140144
class BRepAdaptor_Surface(Adaptor3d_Surface):
141145
@overload
@@ -177,6 +181,7 @@ class BRepAdaptor_Surface(Adaptor3d_Surface):
177181
def NbVPoles(self) -> int: ...
178182
def OffsetValue(self) -> float: ...
179183
def Plane(self) -> gp_Pln: ...
184+
def ShallowCopy(self) -> Adaptor3d_Surface: ...
180185
def Sphere(self) -> gp_Sphere: ...
181186
def Surface(self) -> GeomAdaptor_Surface: ...
182187
def Tolerance(self) -> float: ...

src/SWIG_files/wrapper/BiTgte.i

+13
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,19 @@ Returns the parametric resolution corresponding to the real space resolution <r3
10531053
") Resolution;
10541054
Standard_Real Resolution(const Standard_Real R3d);
10551055

1056+
/****************** ShallowCopy ******************/
1057+
/**** md5 signature: 1b6b0927543eab9d05e2c875c0c3efb6 ****/
1058+
%feature("compactdefaultargs") ShallowCopy;
1059+
%feature("autodoc", "Return
1060+
-------
1061+
opencascade::handle<Adaptor3d_Curve>
1062+
1063+
Description
1064+
-----------
1065+
Shallow copy of adaptor.
1066+
") ShallowCopy;
1067+
virtual opencascade::handle<Adaptor3d_Curve> ShallowCopy();
1068+
10561069
/****************** Trim ******************/
10571070
/**** md5 signature: 40a46ffe7379c6d919968b501b8343a5 ****/
10581071
%feature("compactdefaultargs") Trim;

src/SWIG_files/wrapper/BiTgte.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class BiTgte_CurveOnEdge(Adaptor3d_Curve):
9696
def Parabola(self) -> gp_Parab: ...
9797
def Period(self) -> float: ...
9898
def Resolution(self, R3d: float) -> float: ...
99+
def ShallowCopy(self) -> Adaptor3d_Curve: ...
99100
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor3d_Curve: ...
100101
def Value(self, U: float) -> gp_Pnt: ...
101102

src/SWIG_files/wrapper/ChFiDS.i

+13
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,19 @@ No available documentation.
13551355
") SetPeriodic;
13561356
void SetPeriodic(const Standard_Boolean I);
13571357

1358+
/****************** ShallowCopy ******************/
1359+
/**** md5 signature: 1b6b0927543eab9d05e2c875c0c3efb6 ****/
1360+
%feature("compactdefaultargs") ShallowCopy;
1361+
%feature("autodoc", "Return
1362+
-------
1363+
opencascade::handle<Adaptor3d_Curve>
1364+
1365+
Description
1366+
-----------
1367+
Shallow copy of adaptor.
1368+
") ShallowCopy;
1369+
virtual opencascade::handle<Adaptor3d_Curve> ShallowCopy();
1370+
13581371
/****************** Trim ******************/
13591372
/**** md5 signature: 974fe27e2868c6786b8c68ef515f97f8 ****/
13601373
%feature("compactdefaultargs") Trim;

src/SWIG_files/wrapper/ChFiDS.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ class ChFiDS_ElSpine(Adaptor3d_Curve):
278278
def SetLastPointAndTgt(self, P: gp_Pnt, T: gp_Vec) -> None: ...
279279
def SetOrigin(self, O: float) -> None: ...
280280
def SetPeriodic(self, I: bool) -> None: ...
281+
def ShallowCopy(self) -> Adaptor3d_Curve: ...
281282
def Trim(self, First: float, Last: float, Tol: float) -> Adaptor3d_Curve: ...
282283
def Value(self, AbsC: float) -> gp_Pnt: ...
283284
def VertexWithTangent(self, Index: int) -> gp_Ax1: ...

0 commit comments

Comments
 (0)