ImplicitCAD icon indicating copy to clipboard operation
ImplicitCAD copied to clipboard

Support SCAD dialect used by Lagrange Keyboard

Open hasufell opened this issue 4 years ago • 8 comments

File: https://github.com/dpapavas/lagrange-keyboard/blob/master/things/right.stl

$ extopenscad -O things/right.scad 
Loading File.
Processing File.
No objects to render.
SyntaxError at line 1, column 8:
unexpected "("
expecting "="
<<ghc: 1221144 bytes, 1 GCs, 200224/200224 avg/max bytes residency (1 samples), 13M in use, 0.004 INIT (0.004 elapsed), 0.002 MUT (0.008 elapsed), 0.000 GC (0.001 elapsed) :ghc>>

hasufell avatar Mar 25 '21 20:03 hasufell

so, implicitcad takes scad, and generates stl, not the other way arround. :)

julialongtin avatar Mar 25 '21 22:03 julialongtin

so, implicitcad takes scad, and generates stl, not the other way arround. :)

Yes, see the log:

$ extopenscad -O things/right.scad 

Merely the link is incorrect (the scad file needs to be generated). I uploaded the file here: https://gist.github.com/hasufell/360c81482d0a1f7a7d49c46b42968fff

hasufell avatar Mar 25 '21 23:03 hasufell

ok, looking at that scad file, I can tell you that implicitcad has no color operation, and worse for your model, has no hull operation. determining how to implement hull in a signed distance field is a hard problem.

julialongtin avatar Mar 26 '21 16:03 julialongtin

what scad generator are you using?

julialongtin avatar Apr 02 '21 12:04 julialongtin

It's generated from clojure code: https://github.com/dpapavas/lagrange-keyboard/blob/master/src/lagrange_keyboard/core.clj

It appears to be scad-clj "0.5.4-SNAPSHOT".

hasufell avatar Apr 02 '21 12:04 hasufell

https://github.com/farrellm/scad-clj/issues/38

julialongtin avatar Apr 02 '21 15:04 julialongtin

Started a dialog with upstream to see if we can fix this integration for you.

julialongtin avatar Apr 02 '21 16:04 julialongtin

so, it looks like the library is not the source of the issue, but the decisions of the keyboard's designers. switching which upstream i bother. :)

julialongtin avatar Apr 03 '21 13:04 julialongtin