Commit graph

68 commits

Author SHA1 Message Date
Adrian Mariano
737baed34c further type checking fixes 2021-03-14 12:08:20 -04: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
f4cfd67d94 Fix link to is_homogeneous() 2021-03-01 23:20:53 -08:00
Garth Minette
a346a0cbf0 Added Topics/SeeAlso to affine, arrays, attachments, beziers, common, constants, gears 2021-03-01 22:44:00 -08:00
Adrian Mariano
592fd34986 Doc tweak for modular hose. Add is_bool_list to common.scad. Add
line circle intersection and line bezier intersection.
2021-02-02 17:49:44 -05:00
Garth Minette
2317ca9f4e _undef -> _UNDEF 2021-01-28 18:54:34 -08:00
Garth Minette
a71278af3d Removed echo. 2021-01-28 17:29:35 -08:00
Garth Minette
762eb88d3d Fix for no_module() example. 2021-01-28 17:26:46 -08:00
Garth Minette
12cc40a56f Corrected no_children() example. 2021-01-28 17:13:35 -08:00
Garth Minette
a13a09db8d Docs cleanup for common.scad 2021-01-28 16:59:46 -08:00
Garth Minette
8fb9ef222a Removed slot(), arced_slot(). Fixed positional args ordering and docs. 2021-01-17 01:38:10 -08:00
Revar Desmera
2860de17cc
Merge pull request #364 from revarbat/revarbat_dev
Improved docs gen script
2021-01-05 02:37:53 -08: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
Adrian Mariano
1ce198bcff Added no_function and no_module 2021-01-02 23:28:11 -05:00
Garth Minette
44fcd46b47 Fix for ycyl error when using d1/d2. 2020-12-12 20:28:33 -08:00
Jerome Plut
8b22f3da08 Wrote better documentation for get_named_args() 2020-12-04 00:10:23 +01:00
Jerome Plut
abc8881b00 Fixed indentation issues in docs 2020-12-03 21:48:43 +01:00
Jerome Plut
e983f6599d fixed indentation 2020-12-03 21:40:32 +01:00
Jerome Plut
8ab4b7c538 fixed indentation 2020-12-03 21:40:32 +01:00
Jerome Plut
1d324128e4 Added more flexibility to get_named_args(), and all the left_half(), etc. as functions 2020-12-03 21:40:32 +01:00
Jerome Plut
16204c6724 Allowed half_of() to work on paths, regions and surfaces. 2020-12-03 21:40:32 +01:00
Garth Minette
b22c5a0cfe Bugfixes for looping helpers. 2020-10-06 18:48:39 -07:00
Garth Minette
8b922f7a15 Fixed Looping Helpers docs formatting. 2020-10-06 13:48:14 -07:00
Garth Minette
0cd34406a3 Documented looping helpers. 2020-10-06 01:41:39 -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
Adrian Mariano
c1782f1113 added no_children checks, and attachable to vnf_polyhedron 2020-08-27 19:25:41 -04:00
RonaldoCMP
da5546cbc2 In observance of owner's last review
Eliminate double definitions.
Eliminate unneeded comments.

In common.scad redefine num_defined(), all_defined() and get_radius().

In geometry.scad:
- change name _dist to _dist2line
- simplify _point_above_below_segment() and triangle_area()
- change some arg names for uniformity (path>>poly)
- change point_in_polygon() to accept the Even-odd rule as alternative
- and other minor edits

Update tests_geometry to the new funcionalities.
2020-08-20 22:42:24 +01:00
RonaldoCMP
5462616e1e Revert "In observance of owner's last review"
This reverts commit 99e815f077.
2020-08-20 22:36:50 +01:00
RonaldoCMP
99e815f077 In observance of owner's last review
Eliminate double definitions.
Eliminate unneeded comments.

In common.scad redefine num_defined(), all_defined() and get_radius().

In geometry.scad:
- change name _dist to _dist2line
- simplify _point_above_below_segment() and triangle_area()
- change some arg names for uniformity (path>>poly)
- change point_in_polygon() to accept the Even-odd rule as alternative
- and other minor edits

Update tests_geometry to the new funcionalities.
2020-08-20 22:36:26 +01:00
RonaldoCMP
5051fe5977 Revert "In observance of owner's last review"
This reverts commit 12963296bb.
2020-08-20 22:22:55 +01:00
RonaldoCMP
12963296bb In observance of owner's last review
Eliminate double definitions.
Eliminate unneeded comments.

In common.scad redefine num_defined(), all_defined() and get_radius().

In geometry.scad:
- change name _dist to _dist2line
- simplify _point_above_below_segment() and triangle_area()
- change some arg names for uniformity (path>>poly)
- change point_in_polygon() to accept the Even-odd rule as alternative
- and other minor edits

Update tests_geometry to the new funcionalities.
2020-08-20 22:03:20 +01:00
RonaldoCMP
2b12659d00 refine arg validation of get_radius
It is assumed that args r and d in get_radius can be a finite number or a vector with dimension 1 or 2.
2020-08-17 00:18:33 +01:00
RonaldoCMP
288f203bb6 Revert "Minor edits"
This reverts commit bf44fe5b03.
2020-08-16 23:42:59 +01:00
RonaldoCMP
bf44fe5b03 Minor edits 2020-08-16 23:39:11 +01:00
RonaldoCMP
c9408a66fa Merge remote-tracking branch 'upstream/master' 2020-08-04 00:13:26 +01:00
RonaldoCMP
e858d5627e Merge remote-tracking branch 'upstream/revarbat_dev' 2020-08-02 00:03:05 +01:00
Adrian Mariano
45a8b3ec6a Moved no_children to common.scad, and changed references to
echo_warning in skin.scad and polyhedra.scad.
2020-08-01 15:54:58 -04:00
RonaldoCMP
855c1da6f1 Minor doc edit 2020-07-31 15:53:06 +01:00
Revar Desmera
cddb76a131
Merge branch 'master' into master 2020-07-29 22:14:16 -07:00
Revar Desmera
5e98cbf679
Merge pull request #216 from RonaldoCMP/master
Extensive changes in arrays.scad, vectors.scad, common.scad and their regression test codes
2020-07-29 21:44:39 -07:00
RonaldoCMP
8a25764744 Overall review, input data check, format, new function definitions
New function definitions in commom.scad:
1. valid_range;
2. _list_pattern

New function definitions in math.scad:
1. binomial;
2. binomial_coefficient;
3. convolve;

Code review in math:
1. sum;
2. median;
3. is_matrix;
4. approx;
5. count_true;
6. doc of deriv2;
7. polynomial;
8. poly_mult;
9; poly_div;
10. _poly_trim

Code change in test_common:
1. new test_valid_range;
2. test_is_consistent

Code change in test_math:
1. test_approx;
2. new test_convolve;
3. new test_binomial;
4. new test_binomial_coefficient;
5. test_outer_product;
6. test_polynomial;
7. test_poly_mult;
8. test_poly_div;
9. test_poly_add;
2020-07-29 22:41:02 +01:00
RonaldoCMP
babc10d60d Revert "input checks in math and new function definitions"
This reverts commit 19e5a9504a.
2020-07-29 21:50:22 +01:00
RonaldoCMP
19e5a9504a input checks in math and new function definitions 2020-07-29 21:49:15 +01:00
Adrian Mariano
4f4be3d1d0 tweak to _list_pattern 2020-07-29 06:27:19 -04:00
Adrian Mariano
045ea3085a Fixed bugs in same_shape and is_consistent 2020-07-28 21:26:35 -04:00
RonaldoCMP
3d226f1ffa doc correction 2020-07-28 21:51:45 +01:00
RonaldoCMP
ab57790c27 Correction of is_vector and doc text 2020-07-28 19:02:35 +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
Garth Minette
6798083a11 Added shape_compare() 2020-07-21 16:54:59 -07:00
Garth Minette
feba482396 Optimizations for is_vector(), is_matrix(). Added is_finite(). 2020-07-06 18:28:35 -07:00