Haskell-Things / ImplicitCAD

A math-inspired CAD program in haskell. CSG, bevels, and shells; 2D & 3D geometry; 2D gcode generation...
https://implicitcad.org/
GNU Affero General Public License v3.0
1.39k stars 142 forks source link

cube(20); and cube([10,20,30]); both produce no geometry #216

Closed kliment closed 5 years ago

kliment commented 5 years ago

Creating a file that consists entirely of cube(20); or cube([10,20,30]);, extopenscad reports "No objects to render". sphere(20); works fine, as does cylinder(r=5,h=10);.

rvt commented 5 years ago

You need to use a size param: cube(size=[4,7,9]);

l29ah commented 5 years ago

dae1bd8b042fb942cc100a94355a95cc3b3e5ba7 is the first bad commit

julialongtin commented 5 years ago

Welp, that's embarassing. Thank you, Sergey. Fixed in f5139e1 . also added an example to Examples/ so a revision will be easier to spot.

On Fri, Jun 28, 2019 at 8:30 AM Sergey Alirzaev notifications@github.com wrote:

dae1bd8 https://github.com/colah/ImplicitCAD/commit/dae1bd8b042fb942cc100a94355a95cc3b3e5ba7 is the first bad commit

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/colah/ImplicitCAD/issues/216?email_source=notifications&email_token=AEAMAAQMRCAETXIPXGWZL4TP4W42ZA5CNFSM4G4BVUAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZJ75I#issuecomment-506634229, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAMAAU2FNX32TE72D3JW63P4W42ZANCNFSM4G4BVUAA .