[OpenSCAD] Extending OpenSCAD from assembler to C or Perlish language and adding standard library
nate-openscadforum at pedantic.org
Mon Oct 14 14:53:24 EDT 2019
Not that I advocate doing it, but you can get around that problem by nesting
> That doesn't work because the definition of cube overrides the original so
> that __cube() calls the new one and creates recursion.
> On Tue, 17 Sep 2019 at 11:03, Rogier Wolff <
> > wrote:
>> On Mon, Sep 16, 2019 at 11:20:57AM -0400, Doug Moen wrote:
>> > OpenSCAD should add the flexibility to override built-in modules
>> > with new modules of the same name. You should be able to define a
>> > module called `cube`, and you should be able to reference the
>> > builtin module `cube` while defining the new version of `cube`.
>> This isn't too difficult to implement, I'd think.
>> Just rename the current cube () primitive to __cube () and provide
>> a default module cube () definition that calls __cube()...
Sent from: http://forum.openscad.org/
More information about the Discuss