[OpenSCAD] adding a string & list search() function
andrew at plumb.org
Sat Feb 4 15:41:41 CET 2012
On 2012-02-04, at 8:37 AM, Marius Kintel wrote:
> On Feb 4, 2012, at 05:27 AM, Andrew Plumb wrote:
>> Others are welcome to give it a try; I opened this "Issue" to make my request: https://github.com/openscad/openscad/issues/81
> Pull request here: https://github.com/openscad/openscad/pull/82
> It would be nice if you could provide some usage scenarios. I'm curious where you'd use this function.
Most immediate use is for accessing polygon path tables like this: https://github.com/clothbot/makerbot/blob/master/fabjects/libraries/constructors/fonts.scad
I managed to get a "font_char_index" recursive lookup function working in https://github.com/clothbot/makerbot/blob/master/fabjects/libraries/constructors/text.scad but it was horribly slow.
"The future is already here. It's just not very evenly distributed" -- William Gibson
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenSCAD