1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05: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()
else:
return self.cbase.thickness(val)
def thickness_cm(self, val):
return self.cbase.thickness_cm(val)
def I(self, val=None):
if(val is None):
return self.cbase.I()

View File

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