Commit graph

52 commits

Author SHA1 Message Date
Adrian Mariano
2494de9368 reordering and moving for improved docs
removed xxrot and xxflip
2021-09-11 18:48:23 -04:00
Garth Minette
3fca34babd Added v_lookup() for vector lookups. 2021-07-30 14:41:06 -07:00
Garth Minette
76a8ce50c1 Docs link fix. 2021-06-30 17:31:00 -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
5a355434ce Tweaks for docs usage lines. 2021-06-26 20:59:33 -07:00
Garth Minette
a748c77077 vmul() to v_mul(), etc. 2021-06-14 20:28:49 -07:00
Adrian Mariano
67f08e020b Added examples for vp tree 2021-05-30 20:32:56 -04:00
Adrian Mariano
b88d05c4db Fixed bad error check in vp_search, example errors in debug.scad 2021-05-16 19:06:36 -04:00
Adrian Mariano
465cc40c0a commented example 2021-05-14 16:34:35 -04:00
Adrian Mariano
9501b9da95 fixed vptree 2021-05-14 16:22:11 -04:00
Adrian Mariano
95a27e9ab5 changed debug_vertices to support non-overlapping display of repeated
vertices,  changed debug_polyhedron to debug_vnf, added search_radius
2021-05-14 06:23:33 -04:00
Adrian Mariano
c4ace59ccd Add vantage point tree for searching vector lists. Add "concave"
method to vnf_vertex_array.
2021-05-11 20:51:09 -04: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
Adrian Mariano
1627c3409d Fix path_normals to handle 2d and better error message.
Improve error message for bogus endcaps to stroke() and
running unit() on a zero vector
2021-02-24 16:56:21 -05:00
Garth Minette
f9aa81e178 Improved docs gen script for Returns:, Custom:, Includes:, Topics:, and positional/named args spits. 2021-01-05 01:20:01 -08: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
cc29e07d8f Enable list-of-matrix use of vmul(). 2020-09-28 17:35:05 -07:00
Garth Minette
b2121fbfb3 Added all_nonzero(). Added is_vector(all_nonzero=). 2020-09-07 23:10:39 -07:00
Garth Minette
e56f953c1c Fixed calls to vmul() with heteerogenous vector sizes. 2020-08-02 23:23:50 -07:00
Garth Minette
aa0e77b1f4 Minor fixes for PR #216 2020-07-29 21:58:12 -07:00
RonaldoCMP
ab57790c27 Correction of is_vector and doc text 2020-07-28 19:02:35 +01:00
RonaldoCMP
c10a8b919d Extensive review of arrays.scad, vectors.scad, common.scad and their regression tests
Here is an extensive review of common.scad, vectors.scad, arrays.scad and their regression test codes. The changes were mostly in input data check and format. Some few functions got more changes either to adapt them to the new asserts or because a better (faster, simpler) code was found.

Another change was moving add_scalar from vectors.scad to arrays.scad. It is in fact an array operation. Some few documentation examples and test codes were added. Some function argument names were changed to keep them consistent with the names they have in other similar functions. That name changes were not as extensive as I would like but it is advisable to favor users.

Most, but not all, changed function codes are followed by a comment with a short summary of the changes done. Those comments always start with:
//***

I can eliminate those comments before a merge is done or in a second round.
2020-07-25 20:27:19 +01:00
RonaldoCMP
bdba4c0821 A broad review of input data check and code format
Some functions were changed for sake of clarity or better performance.
2020-07-24 22:54:34 +01:00
RonaldoCMP
d2e851ae42
Merge branch 'master' into master 2020-07-24 14:47:25 +01:00
RonaldoCMP
464c65ce8c Eliminating tabs 2020-07-24 13:30:19 +01:00
RonaldoCMP
88e2fc0f29 Input data check review and some refactoring
Some functions have been changed as a consequence of the dat checking review. vector_axis was fully refactored. add_scalar was moved to arrays.scad
2020-07-24 00:10:36 +01:00
Garth Minette
4a37a5dc8e Added zero=undef/true/false arg to is_vector. Bugfix for vector_axis() 2020-07-21 16:15:02 -07:00
Garth Minette
0be0708c2b Changed unit(dflt=) to unit(error=) 2020-07-11 23:23:12 -07:00
Garth Minette
dde616dad5 unit() now asserts error for zero-length vector unless dflt= arg is given. 2020-07-10 00:03:55 -07:00
Garth Minette
feba482396 Optimizations for is_vector(), is_matrix(). Added is_finite(). 2020-07-06 18:28:35 -07:00
Revar Desmera
53c1e25395 Standardize indention on spaces, not tabs. 2020-05-29 19:04:34 -07:00
Revar Desmera
e32735296c Various bugfixes found by docs regen. 2020-04-26 04:29:21 -07:00
Revar Desmera
975185e262 Bugfix and optimization for find_noncollinear_points(). Optimized points_are_collinear() 2020-04-02 18:15:43 -07:00
Revar Desmera
6b4fb3184c Multiple bugfixes for and argument re-arrangement. Added vfloor() and vceil(). 2020-03-25 19:50:38 -07:00
Adrian Mariano
72aae0e42c Expanded sqr() to take lists and removed vsqr() 2020-03-21 09:19:49 -04:00
Revar Desmera
e635755528 Added vsqr(), vnf_centroid(), and vnf_volume() 2020-03-20 22:15:41 -07:00
Revar Desmera
ee30513644 Bugfix for rot 2020-03-03 19:17:14 -08:00
Revar Desmera
07bfcd6a57 Renamed normalize() to unit() 2020-03-02 19:30:20 -08:00
Revar Desmera
af0e285781 Added is_list_of(). Improved is_path() and is_vector() tests. 2020-03-02 13:47:43 -08:00
Revar Desmera
0a298dba99 Added vang() 2019-12-26 21:42:23 -08:00
Revar Desmera
bbabc641da Removed redundant vquant*() functions. Improved docs." 2019-10-22 17:09:08 -07:00
Revar Desmera
c392741042 Added add_scalar(). Fixed normalize() for [0,0]. Added examples for vector functions. 2019-07-04 23:40:24 -07:00
Revar Desmera
3b0a1a3383 Added spin and anchor to various 2D shapes. 2019-05-29 16:27:35 -07:00
Revar Desmera
f378b70151 Added in range step of 1 to avoid errors. 2019-05-26 22:34:46 -07:00
Revar Desmera
26d16a3187 Split compat.scad out into errors.scad and common.scad 2019-05-15 21:07:27 -07:00
Revar Desmera
b4c8378708 Fixed docs for vector_axis 2019-05-14 19:44:00 -07:00
Revar Desmera
a63e9aca8e Tweaked vector_axis() and vector_angle() to work with lists of points and vectors. 2019-05-14 19:36:32 -07:00
Revar Desmera
668b6de199 Added vquant(), vquantup(), vquantdn() 2019-05-04 20:11:20 -07:00
Revar Desmera
c79e887612 Removed per-file copyright messages in favor of the LICENSE file. 2019-05-03 12:30:20 -07:00