fix error Part_Prism in OpenSCAD,
update references to the properties of Part_Prism in exportCSG.py
This commit is contained in:
parent
4106648286
commit
fac75a0006
|
@ -145,7 +145,7 @@ def process_object(csg,ob):
|
|||
import math
|
||||
f = str(ob.Polygon)
|
||||
# r = str(ob.Length/2.0/math.sin(math.pi/ob.Polygon))
|
||||
r = str(ob.Length) #length seems to be the outer radius
|
||||
r = str(ob.Circumradius) #length seems to be the outer radius
|
||||
h = str(ob.Height)
|
||||
mm = check_multmatrix(csg,ob,0,0,-float(h)/2)
|
||||
csg.write("cylinder($fn = "+f+", "+fafs+", h = "+h+", r1 = "+r+\
|
||||
|
|
Loading…
Reference in New Issue
Block a user