Adrian Mariano
ec02676267
boolean operations fixes
2021-10-09 21:44:26 -04:00
Adrian Mariano
9670fc0e68
fix segment endpoint handling for intersections
2021-10-07 23:20:46 -04:00
Adrian Mariano
230e7c18b5
fix tests
2021-10-05 18:57:46 -04:00
Adrian Mariano
787fe45798
added test
2021-10-05 17:18:43 -04:00
Adrian Mariano
d66c1929a5
fix tests and bugs revealed by new tests
2021-10-01 23:57:07 -04:00
Adrian Mariano
a5ae4879be
add full covariance gaussian random vectors
...
add cholesky fatorization (needed for above, also useful for solving
symmetric linear systems.)
2021-10-01 23:37:06 -04:00
Adrian Mariano
6e3efd68a4
big function re-org to eliminate debug.scad and hide affine.scad from docs
2021-10-01 00:30:28 -04:00
Adrian Mariano
956ae7076c
remove vnf_get_vertex
2021-09-28 21:51:55 -04:00
Adrian Mariano
880c245d3f
merge drive files
...
add functions to compute depth/diam of phillips recess
2021-09-22 21:15:15 -04:00
Adrian Mariano
9ca77eed1b
path.scad cleanup (hid/removed several functions)
2021-09-18 19:11:08 -04:00
Adrian Mariano
6d3eabddc5
make functions in edges.scad internal
...
move some stuff from paths to mutators to get like stuff all together
2021-09-17 17:07:18 -04:00
Adrian Mariano
935a113fcf
Examples fix
...
merge primitives stuff into shapes*.scad
move text commands to shapes3d.scad
rename common.scad
2021-09-16 21:50:12 -04:00
Adrian Mariano
32d9a96bc4
test reorganization
2021-09-16 17:07:12 -04:00
Garth Minette
7feeecd7f6
Remove tests for removed stacks.scad and queues.scad.
2021-09-15 22:11:48 -07:00
Adrian Mariano
856f54df32
removed old triangulation.scad
...
other file name changes
2021-09-15 23:12:51 -04:00
Adrian Mariano
d78eb5213e
Add "is" to geometry.scad predicates
2021-09-15 19:01:34 -04:00
Adrian Mariano
eec1d6b08c
bug fix, added tests
2021-09-15 16:36:03 -04:00
Adrian Mariano
5a4d9554df
err message tweak in star()
...
rearranged polygon_line_intersection to handle 2d and fixed
but where it didn't test polygon membership correctly. Also
there was a bug with use of the bounded argument.
Added Ronaldo's triangulation.
2021-09-13 22:09:51 -04:00
Adrian Mariano
47f0c88c4a
added example and explantion to point_in_polygon
2021-09-11 23:11:18 -04:00
Adrian Mariano
4a463fd8b9
fix tests
2021-09-11 19:35:05 -04:00
Adrian Mariano
2494de9368
reordering and moving for improved docs
...
removed xxrot and xxflip
2021-09-11 18:48:23 -04:00
Adrian Mariano
60dbf8c73e
Fix bug where polygon_normal and plane_from_polygon sometimes give a
...
wrong-pointing normal.
Rename project_onto_plane to plane_closest_point for consistency with
line_closest_point. (Also this distinguishes it better from
project_plane.
Other misc doc tweaks
2021-09-11 16:42:40 -04:00
Garth Minette
444fc57267
Moved trig functions to trigonometry.scad
2021-09-11 02:29:07 -07:00
Adrian Mariano
2a2458577b
fix tests, rename in_front_of_plane to above_plane
2021-09-10 18:16:42 -04:00
Adrian Mariano
566d9b4ece
Remove triangle_area (because polygon_area)
2021-09-10 18:02:56 -04:00
Adrian Mariano
1920014f86
test fixes
2021-09-09 18:54:54 -04:00
Adrian Mariano
1763c51a35
fix tests
2021-09-06 18:38:00 -04:00
Garth Minette
92c88d72b9
Added tests for v_lookup()
2021-07-30 14:54:04 -07:00
Garth Minette
ee504540c3
Fix quant docs to point out non-integer quanta are allowed.
2021-07-07 23:28:07 -07:00
Garth Minette
c967b507a6
Bugfix for line_of()
2021-07-05 20:46:43 -07:00
Garth Minette
be6c903afd
Added more fnliterals
2021-07-04 17:02:48 -07:00
Garth Minette
23f4de897a
Added regressions for group_data() and all_integer()
2021-06-30 19:57:03 -07:00
Revar Desmera
0792beb273
Merge pull request #597 from revarbat/revarbat_dev
...
Add all_integer() and group_data().
2021-06-30 17:22:48 -07:00
Garth Minette
8ef32210c4
Added a bunch of fnliterals.scad regression tests.
2021-06-30 17:09:20 -07:00
RonaldoCMP
5b2f6d7582
Implement vector searches with ball trees and introduces random point generations in debug.scad
2021-06-30 10:55:47 +01:00
Garth Minette
ffb96e240b
Added missing transforms.scad tests.
2021-06-28 19:06:16 -07:00
RonaldoCMP
0b38bc463f
update test_math
2021-06-22 01:34:39 +01:00
RonaldoCMP
b924eaa303
test group_sort
2021-06-22 01:13:40 +01:00
RonaldoCMP
da0181fbb0
test convex collision and distance
2021-06-21 20:43:12 +01:00
RonaldoCMP
9c2e4c23ac
introduce convex collision and distance
2021-06-21 20:19:07 +01:00
RonaldoCMP
c010626bc9
Merge branch 'master' of https://github.com/RonaldoCMP/BOSL2
2021-06-21 20:15:00 +01:00
RonaldoCMP
ea26679b92
Revert "Introduces convex collision and distance"
...
This reverts commit eccb006f85
.
2021-06-21 19:51:26 +01:00
RonaldoCMP
eccb006f85
Introduces convex collision and distance
2021-06-21 19:08:13 +01:00
RonaldoCMP
3a857d89ec
Revert "convex collision and distance"
...
This reverts commit 319ef14e6c
.
2021-06-21 18:43:51 +01:00
RonaldoCMP
83e9bfb2fa
Merge branch 'master' into master
2021-06-21 18:37:03 +01:00
RonaldoCMP
319ef14e6c
convex collision and distance
2021-06-21 18:25:35 +01:00
Garth Minette
a748c77077
vmul() to v_mul(), etc.
2021-06-14 20:28:49 -07:00
Garth Minette
3eb506e78a
Rename quaternion functions to not have uppercase names.
2021-06-12 17:17:05 -07:00
Garth Minette
5ee224f2d3
Added point_segment_distance(), segment_distance(). Renamed distance_from_line() -> point_line_distance(). Renamed distance_from_plane() -> point_plane_distance()
2021-06-10 15:49:44 -07:00
Revar Desmera
dd6211e95a
Merge pull request #567 from RonaldoCMP/master
2021-06-08 12:51:07 -07:00
RonaldoCMP
6647c9e0b3
Speeding up of hull3d
2021-06-04 00:57:50 +01:00
Adrian Mariano
19c521913d
Added general root finder
2021-05-21 19:03:07 -04:00
Garth Minette
33fda63cac
Fixed mask2d_* shapes regressions.
2021-05-17 23:09:18 -07:00
Revar Desmera
7f837a05ec
Merge pull request #525 from RonaldoCMP/master
...
Fix small bug in hull3d_faces
2021-05-05 21:35:10 -07:00
RonaldoCMP
4568fe76df
Still the fix of hull3d_faces
2021-05-05 23:02:48 +01:00
Adrian Mariano
d91a48ef28
fix tests
2021-04-22 06:28:23 -04:00
Adrian Mariano
493ef62826
normalized project_plane and lift_plane to match other transform
...
functions.
2021-04-21 22:49:06 -04:00
Revar Desmera
5ed3602391
Merge pull request #500 from adrianVmariano/master
...
Fix face orientation bugs
2021-04-14 15:13:32 -07:00
Adrian Mariano
27928eac70
bug fixes for caps and style
2021-04-13 20:21:19 -04:00
RonaldoCMP
41616872fe
Correction in is_convex_polygon
2021-04-11 23:45:21 +01:00
RonaldoCMP
c5799d6539
Review of vnf_centroid()
2021-04-11 12:36:05 +01:00
RonaldoCMP
2dcbfeee11
Review of geometry.scad for speed
2021-04-10 21:07:23 +01:00
RonaldoCMP
cdb68ad977
Revert "Review of geometry.scad for speed"
...
This reverts commit 49a3a166eb
.
2021-04-10 20:14:40 +01:00
RonaldoCMP
49a3a166eb
Review of geometry.scad for speed
2021-04-10 20:09:03 +01:00
Revar Desmera
c129fa659b
Merge pull request #494 from revarbat/revarbat_dev
...
Removed range(), rangex(). Added count().
2021-04-08 19:22:09 -07:00
Garth Minette
2225257f09
Tweaks suggested by @adrianVmariano.
2021-04-08 17:27:43 -07:00
Garth Minette
8bd3ef8a74
Removed range(), rangex(). Added count().
2021-04-07 20:57:45 -07:00
RonaldoCMP
99e40a5679
Test convexity of 3d polygons
2021-04-07 07:13:03 +01:00
Garth Minette
a8a34e77e0
Fixed docs errors and regressions issue.
2021-04-06 19:25:40 -07:00
Garth Minette
698268c8c7
Resolved conflicts with master.
2021-04-06 19:18:57 -07:00
Garth Minette
bda2661855
Merge branch 'master' into pr/483
2021-04-06 18:22:39 -07:00
Revar Desmera
27754b2725
Merge pull request #490 from revarbat/revarbat_dev
...
Revarbat dev
2021-04-06 17:05:41 -07:00
Garth Minette
2b78f82063
Regressions fixes for any()/all()/count_true() changes.
2021-04-06 17:01:41 -07:00
RonaldoCMP
8c0e389ec4
Revert "correction of centroid"
...
This reverts commit d4c7fab7ed
.
2021-04-05 16:00:07 +01:00
RonaldoCMP
2c03b19246
Revert "Merge remote-tracking branch 'upstream/master'"
...
This reverts commit fd2c073bb2
, reversing
changes made to d4c7fab7ed
.
2021-04-05 15:59:54 +01:00
RonaldoCMP
407c36a8ae
Revert "correction of centroid"
...
This reverts commit 575db80056
.
2021-04-05 15:59:43 +01:00
Adrian Mariano
957907200b
bezier doc fixes, test for complex()
2021-04-02 20:39:14 -04:00
Adrian Mariano
194f4a5b1f
rounding tests
2021-04-02 17:00:58 -04:00
Adrian Mariano
dd13967049
Cleanup of path_resample, add tests for round_corners, fix
...
bezier_curve and arc to always return n points for either endpoint
setting.
2021-04-02 16:59:29 -04:00
Garth Minette
0b17bf5930
Brought slice() in line with select() indexing, without wrapping. Replaced a lot of select() and slice() calls with last(), list_head(), and list_tail() calls.
2021-03-30 00:46:59 -07:00
RonaldoCMP
575db80056
correction of centroid
2021-03-30 00:25:29 +01:00
RonaldoCMP
fd2c073bb2
Merge remote-tracking branch 'upstream/master'
2021-03-30 00:21:55 +01:00
RonaldoCMP
d4c7fab7ed
correction of centroid
2021-03-29 12:04:45 +01:00
RonaldoCMP
11cb12b0d6
Revert "teste2"
...
This reverts commit 46b0f03af3
.
2021-03-28 17:09:07 +01:00
RonaldoCMP
46b0f03af3
teste2
2021-03-28 17:06:00 +01:00
RonaldoCMP
ba32198d68
Merge branch 'master' into master
2021-03-25 13:40:09 +00:00
RonaldoCMP
cdfc267ac7
Fixes and improvements
2021-03-25 11:51:10 +00:00
RonaldoCMP
da7f9a2412
Revert "Minor corrections"
...
This reverts commit 80e6cf6316
.
2021-03-25 08:36:57 +00:00
Garth Minette
d7cb503ffc
Replace most trivial uses of slice() with faster list_head() and list_tail()
2021-03-25 00:23:36 -07:00
RonaldoCMP
80e6cf6316
Minor corrections
...
Corrections and simplifications of polygon_area(), centroid() and point_in_polygon.
2021-03-25 01:57:07 +00:00
Adrian Mariano
737baed34c
further type checking fixes
2021-03-14 12:08:20 -04:00
Adrian Mariano
35c2d7df42
doc tweaks for skin
...
bug fixes for is_matrix, is_vector, and new tests for same
2021-03-14 10:25:22 -04:00
Revar Desmera
fd8319e0f4
Merge pull request #469 from revarbat/revarbat_dev
...
Workflow apt update fix.
2021-03-12 21:59:33 -08:00
Adrian Mariano
4dc2d4cfe5
Fix bug in skin, add some complex stuff to math and tests
2021-03-12 20:36:34 -05:00
Garth Minette
5b22e6f2d9
Added python-style zip(), zip_long(), combinations() and permutations().
2021-03-10 14:49:39 -08:00
Garth Minette
a3f841de7d
Fix regressions for fixed rot()
2021-03-08 14:54:16 -08:00
Garth Minette
532e95ae66
Merge branch 'revarbat_dev' of github.com:revarbat/BOSL2 into revarbat_dev
2021-03-06 02:45:40 -08:00
Garth Minette
5ac55f624c
Fix regressions.
2021-03-06 02:45:29 -08:00
Adrian Mariano
6a1b141d5c
hull 2d tweak
2021-03-05 20:39:15 -05:00
Adrian Mariano
f736ef98f7
same_shape bugfix (fails if b==undef)
...
check for collinear points in round_corners plus other fixes
fix path_cut to work correctly when closed==true, and change it to
fail with error when cut is too long instead of returning undef.
Add path_cut_segs.
2021-03-05 16:35:41 -05:00
Garth Minette
7fd16512f2
Regression fix for skew()
2021-02-26 13:11:23 -08:00
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 chamfer
s 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