From fac75a0006edcf53ae9903345f0da3eeb9c3a898 Mon Sep 17 00:00:00 2001 From: jmaustpc Date: Sun, 17 Nov 2013 03:24:05 +1100 Subject: [PATCH] fix error Part_Prism in OpenSCAD, update references to the properties of Part_Prism in exportCSG.py --- src/Mod/OpenSCAD/exportCSG.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/OpenSCAD/exportCSG.py b/src/Mod/OpenSCAD/exportCSG.py index 7318f67b4..72064240d 100644 --- a/src/Mod/OpenSCAD/exportCSG.py +++ b/src/Mod/OpenSCAD/exportCSG.py @@ -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+\