Skip to content

Commit

Permalink
fixes #1306: use Part_RegularPolygon in exportCSG
Browse files Browse the repository at this point in the history
  • Loading branch information
5263 authored and yorikvanhavre committed Jan 9, 2014
1 parent 12d1d80 commit 7e79a6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/OpenSCAD/exportCSG.py
Expand Up @@ -151,6 +151,10 @@ def process_object(csg,ob):
csg.write("cylinder($fn = "+f+", "+fafs+", h = "+h+", r1 = "+r+\
", r2 = "+r+", center = "+center(mm)+");\n")
if mm == 1: csg.write("}\n")
elif ob.TypeId == "Part::RegularPolygon":
mm = check_multmatrix(csg,ob,0,0,-float(h)/2)
csg.write("circle($fn = "+str(ob.NumberOfSides)+", "+fafs+", r = "+str(ob.Radius)+");\n")
if mm == 1: csg.write("}\n")

elif ob.TypeId == "Part::Extrusion" :
print "Extrusion"
Expand Down

0 comments on commit 7e79a6d

Please sign in to comment.