1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-26 20:18:51 -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() 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)