1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2025-04-05 07:48:52 -04:00

Merge pull request #42 from hrosiak/python

python module
This commit is contained in:
Andrej Prochazka 2018-10-09 11:28:53 +02:00 committed by GitHub
commit b8557c0d8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -64,6 +64,10 @@ cdef class Material:
return self.cbase.thickness() return self.cbase.thickness()
else: else:
return self.cbase.thickness(val) return self.cbase.thickness(val)
def thickness_cm(self, val):
return self.cbase.thickness_cm(val)
def I(self, val=None): def I(self, val=None):
if(val is None): if(val is None):
return self.cbase.I() return self.cbase.I()

View File

@ -48,6 +48,7 @@ cdef extern from "catima/structures.h" namespace "catima":
void density(double val) void density(double val)
double thickness() double thickness()
void thickness(double val) void thickness(double val)
void thickness_cm(double val)
void calculate() void calculate()
double I() double I()
void I(double val) void I(double val)