apla / atom-jscad

Previewing (J)SCAD 3D models inside Atom.
MIT License
29 stars 9 forks source link

Displays pane but does not render object #5

Open Gasman2014 opened 8 years ago

Gasman2014 commented 8 years ago

Have installed 0.4.0 (Atom 1.8.0).

have tried with

cube([10,10,10]);

and

function main() { return CSG.roundedCube({radius: 10, roundradius: 1}) }

(plus a few more complex real models but I thought , when it didn't work I would try it with something very simple).

Render pane appears and for the faintest fraction of a second "Processing, please wait" (I think - it is too brief to be sure) but the pane remains empty with just the background - no grid or object. No error condition reported though.

stndrf commented 7 years ago

Same here.

apla commented 7 years ago

Try again, I've added error tooltip

stndrf commented 7 years ago

I get this error: Uncaught ReferenceError: cube is not defined

i try to preview this code: cube([10,10,10]);

Tested with Windows 10 and Arch Linux

apla commented 7 years ago

OpenJSCad not works that way. Please read the documentation jscad-cube jscad-cube-error