Skip to content

Commit cc2b699

Browse files
committed
fixed gp module wrapper
1 parent 8c5976a commit cc2b699

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

src/SWIG_files/wrapper/gp.i

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_gp.html"
4141
//Dependencies
4242
#include<Standard_module.hxx>
4343
#include<NCollection_module.hxx>
44+
#include<TColStd_module.hxx>
4445
#include<TColgp_module.hxx>
4546
#include<TColStd_module.hxx>
4647
#include<TCollection_module.hxx>
4748
#include<Storage_module.hxx>
4849
%};
4950
%import Standard.i
5051
%import NCollection.i
52+
%import TColStd.i
5153

5254
%pythoncode {
5355
from enum import IntEnum
@@ -15296,6 +15298,21 @@ gp_Ax1
1529615298
") Axis;
1529715299
const gp_Ax1 Axis();
1529815300

15301+
/****************** Coefficients ******************/
15302+
/**** md5 signature: f3843308545d4e3af26668e295f3d035 ****/
15303+
%feature("compactdefaultargs") Coefficients;
15304+
%feature("autodoc", "Computes the coefficients of the implicit equation of the surface in the absolute cartesian coordinate system: coef(1) * x^4 + coef(2) * y^4 + coef(3) * z^4 + coef(4) * x^3 * y + coef(5) * x^3 * z + coef(6) * y^3 * x + coef(7) * y^3 * z + coef(8) * z^3 * x + coef(9) * z^3 * y + coef(10) * x^2 * y^2 + coef(11) * x^2 * z^2 + coef(12) * y^2 * z^2 + coef(13) * x^2 * y * z + coef(14) * x * y^2 * z + coef(15) * x * y * z^2 + coef(16) * x^3 + coef(17) * y^3 + coef(18) * z^3 + coef(19) * x^2 * y + coef(20) * x^2 * z + coef(21) * y^2 * x + coef(22) * y^2 * z + coef(23) * z^2 * x + coef(24) * z^2 * y + coef(25) * x * y * z + coef(26) * x^2 + coef(27) * y^2 + coef(28) * z^2 + coef(29) * x * y + coef(30) * x * z + coef(31) * y * z + coef(32) * x + coef(33) * y + coef(34) * z + coef(35) = 0.0 raises dimensionerror if the length of coef is lower than 35.
15305+
15306+
Parameters
15307+
----------
15308+
Coef: TColStd_Array1OfReal
15309+
15310+
Returns
15311+
-------
15312+
None
15313+
") Coefficients;
15314+
void Coefficients(TColStd_Array1OfReal & Coef);
15315+
1529915316
/****************** Direct ******************/
1530015317
/**** md5 signature: 33e4e96f61de8e23c989d6f9aec7d457 ****/
1530115318
%feature("compactdefaultargs") Direct;
@@ -15733,10 +15750,6 @@ gp_Ax1
1573315750
%extend gp_Torus {
1573415751
%pythoncode {
1573515752
__repr__ = _dumps_object
15736-
15737-
@methodnotwrapped
15738-
def Coefficients(self):
15739-
pass
1574015753
}
1574115754
};
1574215755

@@ -16304,10 +16317,6 @@ gp_Trsf
1630416317
%extend gp_Trsf {
1630516318
%pythoncode {
1630616319
__repr__ = _dumps_object
16307-
16308-
@methodnotwrapped
16309-
def GetMat4(self):
16310-
pass
1631116320
}
1631216321
};
1631316322

src/SWIG_files/wrapper/gp.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from typing import overload, NewType, Optional, Tuple
33

44
from OCC.Core.Standard import *
55
from OCC.Core.NCollection import *
6+
from OCC.Core.TColStd import *
67

78

89
class gp_TrsfForm(IntEnum):
@@ -1523,6 +1524,7 @@ class gp_Torus:
15231524
def __init__(self, A3: gp_Ax3, MajorRadius: float, MinorRadius: float) -> None: ...
15241525
def Area(self) -> float: ...
15251526
def Axis(self) -> gp_Ax1: ...
1527+
def Coefficients(self, Coef: TColStd_Array1OfReal) -> None: ...
15261528
def Direct(self) -> bool: ...
15271529
def Location(self) -> gp_Pnt: ...
15281530
def MajorRadius(self) -> float: ...

0 commit comments

Comments
 (0)