Commit graph

184 commits

Author SHA1 Message Date
Martin Čížek
ba32041b53 Make circle_point_tangents() behavior consistent for points on the circle. Fix #408 2021-02-02 19:18:43 +01:00
Garth Minette
4f8b9fe7e8 Fixed errors in common.scad regressions. 2021-01-28 17:06:53 -08:00
Garth Minette
a13a09db8d Docs cleanup for common.scad 2021-01-28 16:59:46 -08:00
Garth Minette
48de08f89b Merge branch 'master' into revarbat_dev 2021-01-24 23:28:37 -08:00
Garth Minette
320518194f Various arrays.scad docs updates. Bugfixes. 2021-01-24 23:26:39 -08:00
Revar Desmera
e622af588c
Merge pull request #396 from adrianVmariano/master
rename zip to hstack
2021-01-24 23:10:30 -08:00
Adrian Mariano
d8d934b1de doc & test tweaks 2021-01-24 12:17:56 -05:00
Adrian Mariano
3790783cdc Rename zip to hstack and associated changes. 2021-01-24 10:29:34 -05:00
Garth Minette
ef4d367a98 Removed affine3d_chain() calls. 2021-01-20 18:14:04 -08:00
Garth Minette
c2129972c3 Dropped affine2d_chain(), affine3d_chain(). Improved affine.scad docs. 2021-01-20 18:06:46 -08:00
Garth Minette
6e42a1189d Regressions fix for affine3d_frame_map() 2021-01-20 13:40:25 -08:00
Garth Minette
b6cfda0537 Remove apply_list(). Renamed affine_frame_map() to affine3d_frame_map() 2021-01-20 13:36:41 -08:00
Garth Minette
e836213754 Update docs and regressions for apply() 2021-01-19 20:53:09 -08:00
Garth Minette
98aad31b69 Fixed vnf_get_vertex() for single point. 2021-01-14 00:32:40 -08:00
Revar Desmera
56a7037e81
Merge pull request #376 from revarbat/revarbat_dev
Added reuleaux_polygon()
2021-01-11 02:03:50 -08:00
Garth Minette
c790969ceb Added reuleaux_polygon() 2021-01-11 01:57:51 -08:00
Matthew Fallshaw
4c4e1c7993 Compare cylinders, with and without chamfers and circum. 2021-01-09 18:38:34 +11:00
Adrian Mariano
ec915a7eaa Added echo_matrix, matrix_strings, str_pad and str_replace_char. 2021-01-01 01:30:13 -05:00
Adrian Mariano
e0ac4d0c1b Fixed bugs in list_set, list_remove, list_insert that were revealed by
adding degenerate case tests.  List_set was broken for minlen
nonzero (no tests).  Added seed to shuffle.  Fixed bounds check error
in rounded_prism.
2020-12-31 09:32:47 -05:00
Adrian Mariano
a495528398 Fixed bugs in hull_points, added seeds to tests, added seed parm to shuffle() 2020-12-22 18:15:25 -05:00
Adrian Mariano
3774e25689 remove hull.scad, replaced with test_hull.scad 2020-12-16 21:29:33 -05:00
Adrian Mariano
ecb915eb8f fixed arc test 2020-12-12 21:24:33 -05:00
Adrian Mariano
b82f1b8e5d tweaked vac example in turtle3d
added delete_last() to arrays.scad
added endpoint= option to arc
added tests for last two things
2020-12-12 21:15:33 -05:00
Garth Minette
70a6b7fac8 Fixed some undef warnings in distributors. 2020-12-09 23:43:08 -08:00
Garth Minette
e6ef5e98be Fix math.scad regression. 2020-12-02 17:21:58 -08:00
Garth Minette
f36fbb60db Fix for #166: tweaks for xcopies, etc. 2020-11-30 21:09:00 -08:00
Marcin Jaworski
8cd7530743 Added tests for struct_val() with default value 2020-11-13 17:19:29 +01:00
Adrian Mariano
f598426344 Add cumprod function and regression test 2020-10-23 19:06:30 -04:00
Adrian Mariano
c80c7c558a Added rot_decode to decode rotation matrices and matrix_trace,
supporting function, and regression tests for both.
2020-10-20 16:26:11 -04:00
Garth Minette
41ab991c15 Fixed bad spheroid() regression. 2020-10-15 19:21:36 -07:00
Garth Minette
16ee49e8b2 Fixed a bunch of undef math warnings with dev snapshot OpenSCAD builds. 2020-10-03 19:50:29 -07:00
Garth Minette
e3ccf482fa Make list functions make more sense with strings. 2020-09-28 19:12:07 -07:00
Garth Minette
cc29e07d8f Enable list-of-matrix use of vmul(). 2020-09-28 17:35:05 -07:00
Garth Minette
23bcc1b806 Removed sum_of_squares() as it's redundant with sqr(vector) 2020-09-28 16:56:18 -07:00
Garth Minette
37ae0cbba0 Simplify sqr(x) to x*x 2020-09-28 16:52:17 -07:00
Garth Minette
1435100e37 Implemented Issue #262 2020-09-25 00:31:42 -07:00
Garth Minette
f193871a34 Implement fix for issue #174. 2020-09-25 00:01:45 -07:00
Garth Minette
4f88775ef9 Changed circle_point_tangents() to return just a list of 2D tangent points. 2020-09-24 17:09:06 -07:00
Garth Minette
45dbfe6524 Added regressions for torx_drive.scad 2020-09-24 15:59:25 -07:00
Garth Minette
c400843cb2 Added regressions for vnf_centroid() and vnf_volume() 2020-09-23 19:38:22 -07:00
Garth Minette
eb969bba7e hull, quaternion, and edges regressions. 2020-09-22 20:33:50 -07:00
RonaldoCMP
75e5cd4979 Solving bugs in functions on planes 2020-09-09 09:37:31 +01:00
Garth Minette
b2121fbfb3 Added all_nonzero(). Added is_vector(all_nonzero=). 2020-09-07 23:10:39 -07:00
Garth Minette
a9b8f5618a Fix for Issue #263 2020-09-06 17:15:08 -07:00
Adrian Mariano
399c40f7a6 Added null_space and diagonal_matrix 2020-09-01 18:38:31 -04:00
Adrian Mariano
3caeeff2cd Added norm_fro, quadratic_roots and pivoting to qr_factor and
linear_solve.  Added tests.
2020-09-01 17:57:31 -04:00
Adrian Mariano
8f6c2e8538 Add submatrix_set and block_matrix and tests 2020-09-01 16:42:47 -04:00
RonaldoCMP
bbe4ad1467 Sort debugging and optimizing
There were bugs in the previous sorting functions. They didn't check the homogeneity of the input list before calling _sort_scalars and _sort_vectors. The bug might result in wrong order and missing list elements in the output.
Besides correcting the bug a recode of all sorting functions result in better performance and a enlargement of their scope. With the new functions, list of vectors of any dimension may be sorted, even with idx given, with the native comparison operators. The scope of indexed sorting is also extended.

The file test_arrays has been extended to check the new funcionality.

New functions:

is_homogeneous - checks if a list has elements of the same type (although not distinguing booleans from numbers) up to a given depth
_sort_vectors - internal function to sort homgeneous lists of vectors using native comparison operators; extends the scope of the previous _sort_vectors# functions with better performance
_lexical_sort - internal function to sort non-homogeneous lists; uses compare_vals
_indexed_sort - internal function to perform indexed sorting of non-homogeneous lists; uses compar_vals

Changed/reviewed functions:
_valid_idx - doesn't requires the input of imin and imax args
sort - explores the internal functions to get better performance and an enlarged scope
sortidx - explores the internal functions to get better performance and an enlarged scope
_sort_general - just for sortings of non-homogeneous lists using compare_vals
_array_dim_recurse - changed for bit better performance

Functions eliminated:
 _sort_vectors1
 _sort_vectors2
 _sort_vectors3
 _sort_vectors4
2020-08-30 12:12:36 +01:00
Garth Minette
5d2c45bba0 Merge branch 'master' of github.com:revarbat/BOSL2 into revarbat_dev 2020-08-28 19:19:04 -07:00
Garth Minette
e1b0985afc Fixed broken line-plane intersections. Attachment enhanced vnf_polyhedron(). 2020-08-28 19:07:10 -07:00