Skip to content

Commit

Permalink
fix error Part_Prism in OpenSCAD,
Browse files Browse the repository at this point in the history
update references to the properties of Part_Prism
in exportCSG.py
  • Loading branch information
jmaustpc committed Nov 18, 2013
1 parent 4106648 commit fac75a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/OpenSCAD/exportCSG.py
Expand Up @@ -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+\
Expand Down

0 comments on commit fac75a0

Please sign in to comment.