ImplicitCAD icon indicating copy to clipboard operation
ImplicitCAD copied to clipboard

documentation doesn't say how to assign objects to variable names and copy them

Open leaf-node opened this issue 9 years ago • 3 comments

... or describe whatever functionality is comparable in the implicitcad system. something like this is necessary to compose the code into objects or functions and for code reuse.

an advanced example in the examples/ directory showing this and other features would also be nice.

as long as i've created the issue: what is the correct way to do this in implicitcad?

leaf-node avatar Mar 01 '16 22:03 leaf-node

(to be clear, i'm referring to the .escad format.)

leaf-node avatar Mar 01 '16 22:03 leaf-node

simple answer: I don't know!

I'm looking into it...

julialongtin avatar Mar 07 '17 17:03 julialongtin

ok, i have an answer, but i don't think you'll like it. :)

It's not possible to assign an object to a variable.

It is, however, possible to assign a module to a variable, and that module can have no arguments, and produce the object you're looking for.

julialongtin avatar Jul 27 '19 08:07 julialongtin