Hello,
Something missing also is to use range for indexes, like in python.
Example: v=[0,1,2,3]; v[0:1] should return a vector with 2 fist elems.
Also, v[:2], v[1:], v[:-1]... should work !
a+
Vicnet
--
View this message in context: http://forum.openscad.org/ranges-to-vectors-tp7651p14368.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
vicnet wrote
Hello,
Something missing also is to use range for indexes, like in python.
Example: v=[0,1,2,3]; v[0:1] should return a vector with 2 fist elems.
Also, v[:2], v[1:], v[:-1]... should work !
a+
Vicnet
There's a similar discussion couple of months back: Proposal for range (
[i:j:k] ) improvement
http://forum.openscad.org/Proposal-for-range-i-j-k-improvement-td13184.html
.
$ Runsun Pan, PhD
$ libs: doctest , faces ( git ), offline doc ( git ),runscad.py( 1 , 2 , git );
$ tips: hash( 1 , 2 ), sweep , var , lerp , animGif
--
View this message in context: http://forum.openscad.org/ranges-to-vectors-tp7651p14374.html
Sent from the OpenSCAD mailing list archive at Nabble.com.