1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-26 12:08:52 -05:00

python module

This commit is contained in:
hrocho 2018-09-18 19:03:17 +02:00
parent 9254e0d77a
commit 97e4f35fd8
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)