taxpon / openpyscad

Python library to generate OpenSCAD source code. This library provides intuitive interface when you handle 3D data.
https://pypi.org/project/openpyscad/
MIT License
119 stars 21 forks source link

(ISSUE WITH PYTHON) Cylinder r1 and r2 are being saved as just r #27

Closed Geoffery10 closed 4 years ago

Geoffery10 commented 4 years ago

I'm trying to make a Pyramid like cylinder(50, 50, 00, $fn=4, center=true); using openpyscad but to no avail. I've tired things like this Cylinder(h=50, r1=50, r2=0, _fn=4, center=True) in python but r1 just gets translated to r and r2 gets ingored. The output ends up like this cylinder(h=50, r=50, center=true, $fn=4); which is not a pyramid. I might be missing something or it might just be a bug but all the other things I've made work just fine it just seems to be r1/r2.

Geoffery10 commented 4 years ago

Apologies for the issue. I restarted my computer and suddenly the code worked. It was probably an issue on python's end or maybe my IDE. I feel dumb now but I was really puzzled as to why the code looked right but wouldn't run right.