[OpenSCAD] recursion limit on concat()
openscad at js3.nl
Mon Oct 14 17:16:17 EDT 2019
Just to make things a bit less mysterious, the reason why 2019.05 and before
don't do tail recursion in Ronaldo's recursive example, is that the old
implementation requires exactly one branch of the ternary to be a function
call. But both branches are function calls: "concat" and "string_to_points".
A hack-around can be to replace "? concat([pos],ps)" with "? assert(true)
concat([pos],ps)", or something similarly silly (and note that the "assert"
function is not present in the 2015 versions). Iteratively is probably the
way to go here :)
Sent from: http://forum.openscad.org/
More information about the Discuss