fixes #0001306: use Part_RegularPolygon in exportCSG

This commit is contained in:
Sebastian Hoogen 2013-12-03 17:09:18 +01:00 committed by Yorik van Havre
parent 12d1d80525
commit 7e79a6d303

View File

@ -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"