Commit graph

39 commits

Author SHA1 Message Date
Adrian Mariano
29b682be96 Added lcm() and gcd() and is_integer() to math.scad. Added a couple
3d examples for supershape() that I snagged from
list-comprehension-demo.  Added repeat_entries to array.scad.  Note
dependence on _sum_preserving_round which is in paths.scad.  Also note
it's possible _force_list (added to math.scad) should be exposed, or
placed elsewhere.
2019-12-06 19:27:49 -05:00
Revar Desmera
c05b6bfa5c Fixed erroneous assertion in list_range() 2019-11-19 18:02:36 -08:00
Adrian Mariano
c0d18ab0b1 Corrected processing of $fn for round_corners, added two examples
to skin (from list comp demos) and added another error check to zip.
2019-11-13 18:17:30 -05:00
Revar Desmera
0b38d7b546 Fixed error in shuffle() 2019-11-06 23:42:00 -08:00
Revar Desmera
302b8c4b2f Removed assert_in_list() in favor of assert(in_list()) 2019-10-31 01:33:28 -07:00
Revar Desmera
faea648e66 Simplified list_rotate() and polygon_shift() 2019-10-30 01:19:34 -07:00
Revar Desmera
b0cdbcca0a Added list_rotate() and a bunch of assert()s 2019-10-29 22:42:41 -07:00
Revar Desmera
18ec424317 Fixed list_decreasing() 2019-10-23 22:48:47 -07:00
Revar Desmera
bbabc641da Removed redundant vquant*() functions. Improved docs." 2019-10-22 17:09:08 -07:00
Revar Desmera
c0478728d2 Added list_remove_values() 2019-10-21 02:28:45 -07:00
Revar Desmera
ce724d2691 Added start= arg for idx() 2019-09-19 02:41:59 -07:00
Revar Desmera
7809b7bbe1 Added end option to idx() 2019-08-19 20:41:40 -07:00
Revar Desmera
a51e3563fe Added ability to list_insert() to multiple positions at once. 2019-08-17 01:14:00 -07:00
Revar Desmera
1e0ca09182 Added list_set() optimization for single scalar indices. 2019-08-15 20:49:04 -07:00
Revar Desmera
4a72997fb8 Fix for idx() and shuffle() docs formatting. 2019-07-18 21:28:15 -07:00
Revar Desmera
959781d6fe Added closed option to deduplicate(). Fixed inconsistent indentation. 2019-07-18 21:24:32 -07:00
Adrian Mariano
d86b94193b Handle zero length inputs for list_set and list_remove 2019-07-12 20:19:33 -04:00
Revar Desmera
c158d31289 Added idx() to return index range of a given list. 2019-07-09 18:40:36 -07:00
Adrian Mariano
48b154b9f8 Fixed bug in list_set and arg order 2019-06-28 18:26:05 -04:00
Revar Desmera
206946e7f2 Merge branch 'master' of github.com:revarbat/BOSL2 2019-06-25 17:44:25 -07:00
Revar Desmera
e162e14cc5 Added bselect() and list_bset() 2019-06-25 17:44:21 -07:00
Adrian Mariano
8ce98ab286 Changed sort and sortidx to use efficient method for certain cases. 2019-06-25 19:16:40 -04:00
Adrian Mariano
ba9011f002 Use each in flatten(). It's faster. 2019-06-22 17:00:12 -04:00
Adrian Mariano
60be226e85 Added 3 examples to roundcorners.
Added doc text for list_increasing and list_decreasing.
Added str_match, str_matches, starts_width, ends_width.
Fixed substr to use tail recursion.
2019-06-22 13:33:49 -04:00
Revar Desmera
5133734cfd Changed list_range(s,e,n) to auto-set step to (e-s)/(n-1). 2019-06-19 01:51:47 -07:00
Revar Desmera
d069cf39ce Added triplet() and triplet_wrap(). 2019-06-19 01:31:44 -07:00
Revar Desmera
3b1df57d5d Added deduplicate() 2019-06-16 23:54:44 -07:00
Revar Desmera
5edbb339bf Added list_set, list_increasing, list_decreasing 2019-06-11 19:26:06 -07:00
Revar Desmera
62f913a148 Added rand_ints() and shuffle() 2019-05-29 17:42:09 -07:00
Revar Desmera
9a860c53ef Optimized transpose() slightly. 2019-05-26 23:21:05 -07:00
Revar Desmera
8f2b9c4ef1 Optimized various array functions. 2019-05-26 23:18:49 -07:00
Revar Desmera
f378b70151 Added in range step of 1 to avoid errors. 2019-05-26 22:34:46 -07:00
Revar Desmera
e8e0d8f3d3 Fixed transpose() examples. 2019-05-12 12:54:09 -07:00
Revar Desmera
dba2edc984 Fixed transpose for vectors and non-array lists 2019-05-12 12:51:58 -07:00
Revar Desmera
78e3cd3c27 matrix_transpose() generalized to transpose() 2019-05-12 12:32:03 -07:00
Revar Desmera
09e89e9182 Fixed pair() and pair_wrap() 2019-05-10 02:59:12 -07:00
Revar Desmera
0ef235fb63 array_zip() -> zip(), array_subindex() -> subindex(), added pair(), added pair_wrap() 2019-05-10 02:33:44 -07:00
Revar Desmera
c79e887612 Removed per-file copyright messages in favor of the LICENSE file. 2019-05-03 12:30:20 -07:00
Revar Desmera
cc36235736 Updated copyright years. Split math.scad up. Enabled attach for lots of shapes. Removed backwards compatability. 2019-04-19 17:02:17 -07:00