Commit graph

745 commits

Author SHA1 Message Date
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
7ea33cc724 Added asserts for regular_ngon(). 2020-03-02 12:57:24 -08:00
Revar Desmera
8a29e9e86b Fixed matrix form of rot(from,to,a) 2020-03-02 12:42:29 -08:00
Revar Desmera
c6ec9c8820 Moved path functions from geometry.scad to paths.scad 2020-03-01 16:12:51 -08:00
Revar Desmera
28114b49b5 Cleaned up code formatting in math.scad. 2020-03-01 15:42:12 -08:00
Revar Desmera
fd3d812f7e More docs example image bugfixes. 2020-02-29 19:17:52 -08:00
Revar Desmera
46a322f935 Docs example image bugfixes. 2020-02-29 19:16:43 -08:00
Revar Desmera
373a119be8 Example bugfixes. 2020-02-29 15:30:55 -08:00
Revar Desmera
6651e1be42 Renamed orient_and_anchor() to attachable() and refactored arguments and internals. 2020-02-29 13:16:15 -08:00
Revar Desmera
c8e5103db8 Incorrect cols arg in vnf_vertex_array() docs. 2020-02-28 21:42:22 -08:00
Revar Desmera
da4f822eca Added split_nested_region() 2020-02-28 21:39:58 -08:00
Revar Desmera
7e0512e5f9 Bugfix for polygon_line_intersection() for failing to find intersection. 2020-02-28 21:37:16 -08:00
Revar Desmera
3c3318de63 Removed orient_and_anchor() use in distributors. 2020-02-28 21:36:10 -08:00
Revar Desmera
2f8787dac5 Added get_anchor() 2020-02-28 21:34:58 -08:00
Revar Desmera
f838e8a1e2 Bugfix for variable error in unique() 2020-02-28 21:32:57 -08:00
Revar Desmera
25fe326d2a Made quaternion docs somewhat clearer. 2020-02-15 17:13:33 -08:00
Revar Desmera
fa84fffa94 Tighten down requirements for image compare in docs generation. 2020-02-15 16:53:29 -08:00
Revar Desmera
51e7f514a4 Added Qrot_copies(), enabled range for Q_Slerp(). Improved example images. 2020-02-15 16:49:02 -08:00
Revar Desmera
393f9e2639 Q_Slerp() cleanup. 2020-02-14 23:06:01 -08:00
Revar Desmera
fe5d7baa0b Update README.md files. 2020-02-13 22:25:41 -08:00
Revar Desmera
0f7c7956d1 Tweaked skin() examples. 2020-02-13 21:58:46 -08:00
Revar Desmera
3500f01e8f Merge master. 2020-02-13 18:06:15 -08:00
Revar Desmera
c533dfe315 Adjusted skin() docs and example images. 2020-02-13 18:03:19 -08:00
Revar Desmera
a3d9c9bdba Added corner_mask() 2020-02-13 00:30:37 -08:00
Revar Desmera
d765450cc3 Added corners(), CORNER_OFFSETS 2020-02-12 17:11:40 -08:00
Revar Desmera
9736ec48f5 Added edge_profile(), edge_mask(), and various 2D mask shapes. 2020-02-11 20:11:59 -08:00
Revar Desmera
af82c1ffc7 Fixed rounding masks for r1=0. 2020-02-11 20:10:41 -08:00
Revar Desmera
019961aef7 Added dflt= arg to sum(), defaulting to 0. 2020-02-08 21:54:39 -08:00
Revar Desmera
a78973187a Simplified is_nan() 2020-02-07 01:58:45 -08:00
Revar Desmera
ba032e2f4d Added NAN, INF, and is_nan(). 2020-02-06 22:51:16 -08:00
Revar Desmera
28f07a997f Tweaked uniform skin method. 2020-02-02 19:33:09 -08:00
Revar Desmera
f16de52e4a Fixed docs formatting in round_corners() 2020-02-01 22:01:33 -08:00
Revar Desmera
f5803a696a Fixed spelling of Asymmetric 2020-01-31 23:32:34 -08:00
Revar Desmera
06ca151bc8 Fixed bezier patch example. 2020-01-31 23:09:04 -08:00
Revar Desmera
855aa0cf36 Re-organized region.scad docs. 2020-01-31 21:35:04 -08:00
Revar Desmera
ef0c92cfa5 Docs formatting fix in place_copies() 2020-01-31 18:58:17 -08:00
Revar Desmera
f49dfa8a9e Split distributors and mutators out of transforms.scad 2020-01-31 17:03:41 -08:00
Revar Desmera
7a92ffdbaf Reorganized functions in paths.scad 2020-01-31 16:37:27 -08:00
Revar Desmera
90daf37a53 Added polygon_is_convex() 2020-01-30 21:18:39 -08:00
Revar Desmera
c1bc74b643 Removed forced endcap triangulation from skin(). 2020-01-30 16:52:47 -08:00
Revar Desmera
62b0f95b44 Removed unused code from skin() 2020-01-30 16:35:30 -08:00
Revar Desmera
39f27fb1d9 Weaned skin() off of slow vnf_faces() 2020-01-30 15:36:39 -08:00
Revar Desmera
8da60800c9 Consolidated path code into paths.scad 2020-01-30 14:00:10 -08:00
Revar Desmera
674f276362 Added method="convex" to skin() 2020-01-29 19:40:02 -08:00
Revar Desmera
00bbdedd47 Tweak to rounded_prismoid() to use new square() with rounding. 2020-01-29 18:04:29 -08:00
Revar Desmera
555f1a9ab3 Bugfix for stroke() with scalar width. 2020-01-29 01:31:05 -08:00
Revar Desmera
e8aa0a068a square() can now mix and match chamfers and roundings per corner. 2020-01-29 01:09:39 -08:00
Revar Desmera
b074259054 Added variable line widths along path to stroke() 2020-01-28 19:15:23 -08:00
Revar Desmera
cee46b1721 Added path_pos_from_start(), path_pos_from_end(), path_trim_start(), path_trim_end() 2020-01-28 19:13:56 -08:00
Revar Desmera
f740051ad1 Rewrote phillips_driver() to an actual spec. 2020-01-27 04:09:06 -08:00
Revar Desmera
bba54d2315 Added bosl1compat.scad to make porting from BOSL1 to BOSL2 easier. 2020-01-24 22:27:17 -08:00
Revar Desmera
0de692f681 Example typo fix. 2020-01-23 17:01:41 -08:00
Revar Desmera
0caad68e4c Fixed cp= for rot_copies() 2020-01-22 17:36:36 -08:00
Revar Desmera
5c28029c47 Fixed bracing on thinning_wall() 2020-01-18 18:46:08 -08:00
Revar Desmera
9f6a95090f Added regressions for gcd(), lcm(), and factorial() 2020-01-16 13:27:50 -08:00
Revar Desmera
68260afebb Added regressions for permute() and repeat_entries() 2020-01-16 13:01:41 -08:00
Revar Desmera
be8b30974a Added is_int() regressions 2020-01-15 20:27:01 -08:00
Revar Desmera
43bc09d838 Add regression test for vang() 2020-01-15 20:13:07 -08:00
Revar Desmera
9f2d9d52ef Changed default s of *_half() modules to 1000. 2020-01-15 14:24:57 -08:00
Revar Desmera
9d84c33af6 Fixed 2D attachments issue That rotated shapes vertically. 2020-01-15 14:18:11 -08:00
Revar Desmera
62e8e517fd Added rounding examples for 2D Ngons. 2020-01-14 16:48:20 -08:00
Revar Desmera
ab66cb5788 Added rounding= option to various 2D Ngons. 2020-01-14 16:23:35 -08:00
Revar Desmera
5a9d15c1a5 Fixed a pathological behaviour with small 2D imperfections in round2d 2020-01-14 15:29:09 -08:00
Revar Desmera
fd98ef2eb4 Fixed example for interior_fillet() 2020-01-13 23:54:12 -08:00
Revar Desmera
9d9225f9f3 Reoriented default right_triangle() and interior_fillet() to more intuitively work with spin. 2020-01-13 19:06:56 -08:00
Revar Desmera
c6fc770008 dovetail() has too little slop 2020-01-10 19:30:20 -08:00
Revar Desmera
5ccf1e26bd Added convexity= to skin() and vnf_polyhedron() 2020-01-09 20:10:46 -08:00
Revar Desmera
3fdc58fded Docs fixes for dovetail() 2020-01-09 18:22:07 -08:00
Revar Desmera
49ffaacb28 Tweak docs formatting in arrays.scad 2020-01-09 16:14:12 -08:00
Revar Desmera
2f1760a342 Reorganize arrays.scad docs 2020-01-09 16:10:18 -08:00
Revar Desmera
231bb69634 Fixed bug introduced into sum() when summing lists of vectors. 2020-01-09 14:28:54 -08:00
Revar Desmera
48d30fc686 Reorganize math.scad 2020-01-08 20:43:19 -08:00
Revar Desmera
fe7b87e92d Fixed argument typo in skew() 2020-01-06 16:55:22 -08:00
Revar Desmera
1ce899c412 Cleaned up docs gen error reporting. 2020-01-06 16:45:30 -08:00
Revar Desmera
c4ceed4e21 Fixed docs error with yflip() 2020-01-06 16:31:16 -08:00
Revar Desmera
b4bad57588 Reorganized 2D shapes. Added teardrop2d() function. 2020-01-05 21:36:27 -08:00
Revar Desmera
e43759c6e0 Fixed erroneous assert in rot_copies() 2020-01-02 17:03:06 -08:00
Revar Desmera
7a58e69a31 Clean up square() functional example. 2019-12-27 13:37:22 -08:00
Revar Desmera
4e9aa3868d Tweaks to square() examples. 2019-12-26 21:49:05 -08:00
Revar Desmera
fc1d6ede72 Added rounding= and chamfer= options to square() 2019-12-26 21:43:42 -08:00
Revar Desmera
0a298dba99 Added vang() 2019-12-26 21:42:23 -08:00
Revar Desmera
0acf0c829c Added closed= to trace_polyline() 2019-12-26 21:40:47 -08:00
Revar Desmera
a70734cd29 Docs grammar fixes for reindex_polygon() 2019-12-26 21:39:49 -08:00
Revar Desmera
91b0e58093 Fixed references to skew_*() 2019-12-19 23:26:54 -08:00
Revar Desmera
17867c9dc1 Coalesced skew_*() to just skew(). 2019-12-19 21:03:13 -08:00
Revar Desmera
60b92e1d56 Upped default s size to 10000 for *_half() modules. 2019-12-16 19:19:17 -08:00
Revar Desmera
503829f2c7 Tweaked docs_gen.py to look for git and openscad in PATH. 2019-12-07 17:20:15 -08:00
Revar Desmera
8712d246c9 Changed docs_gen.py to not need ImageMagick or cmp 2019-12-07 17:09:47 -08:00
Revar Desmera
b0b4e026a8 Fixed missing docs for method= arg of subdivide_path() 2019-12-06 19:16:31 -08:00
Revar Desmera
969f17f4c6 Bugfix for polygon_shift_to_closest_point() 2019-12-06 19:14:03 -08:00
Revar Desmera
24de174d6f Improved centroid() to work with 3D planar polygons. 2019-12-05 14:01:40 -08:00
Revar Desmera
f0915b8e0b Fixed VNF face reversal on odd number of negative axis scale factors in functional scale() 2019-12-04 02:48:02 -08:00
Revar Desmera
fa055e9469 Tweaked move(), rot(), scale(), etc to handle bezier patches and VNF structures. Added mirror() and skew_XX() functions. 2019-12-04 02:24:34 -08:00
Revar Desmera
80e9ecac05 Fixed some issues with stroke() docs. 2019-12-04 02:20:05 -08:00
Revar Desmera
23660ec688 Added missing affine mirror matrices. 2019-12-03 19:04:56 -08:00
Revar Desmera
4f0e6392e2 Split regions and boolean geometry out of geometry.scad into regions.scad. Added various ray intersection functions. Added plane intersection functions. 2019-12-02 15:35:03 -08:00
Revar Desmera
0ab64b746d Fixed cylinder() argument ordering to match built-in. 2019-11-23 18:23:04 -08:00
Revar Desmera
6901c02fa9 Fixed align_polygon() example. 2019-11-19 18:19:11 -08:00
Revar Desmera
7cef1f81af Tweak subdivide_path() example images. 2019-11-19 18:11:50 -08:00
Revar Desmera
8f63ce43ad Fixed some docs formatting errors. 2019-11-19 18:03:47 -08:00
Revar Desmera
c05b6bfa5c Fixed erroneous assertion in list_range() 2019-11-19 18:02:36 -08:00
Revar Desmera
9f92fe8775 Enhanced lerp() to allow list/range u values to return lists of results. 2019-11-18 21:11:38 -08:00
Revar Desmera
bb92d788ef Added reverse_polygon() and improved ccw_polygon() and clockwise_polygon() 2019-11-17 18:19:55 -08:00
Revar Desmera
2b95e67cda Removed extra arg from call in hull.scad 2019-11-17 18:15:57 -08:00
Revar Desmera
23b76fd49a Bugfix for skin()'s uniform method. Bugfix for non-coplanar skin() profiles. 2019-11-14 15:45:37 -08:00
Revar Desmera
b871a54891 Corrected skin example method. 2019-11-13 22:16:50 -08:00
Revar Desmera
871540c57c Changed skin params. matching= -> method= and "evenly" -> "uniform" 2019-11-13 21:58:48 -08:00
Revar Desmera
78197e1909 Added bad examples to skin() docs. 2019-11-12 22:51:13 -08:00
Revar Desmera
e644cc750b Updated regressions for edge_set() -> _edge_set() 2019-11-12 14:14:15 -08:00
Revar Desmera
111cf1dcc6 Make figure titles not be on same line as figure in docs. 2019-11-12 14:07:34 -08:00
Revar Desmera
a8db3919c1 Added more edge set figures. 2019-11-12 13:55:12 -08:00
Revar Desmera
6904aedba3 Re-ordered edges() figure 1. 2019-11-12 00:00:07 -08:00
Revar Desmera
9d78a67c64 Remove spin from edges() figure1. 2019-11-11 23:45:58 -08:00
Revar Desmera
a52412cabe Added edges_except= to rounding(), chamfer(), and cuboid(). 2019-11-11 23:38:27 -08:00
Revar Desmera
066bb190f9 Added quaternion.scad regressions and bugfixes. Added function variant of Qrot() 2019-11-11 19:09:46 -08:00
Revar Desmera
7c3f913050 Fixed error in results of fmtf(0.01) 2019-11-11 11:26:18 -08:00
Revar Desmera
d999822355 Refactored bezier patch code to use VNFs. 2019-11-11 00:50:25 -08:00
Revar Desmera
d73ab76c9a Added tests for errors.scad 2019-11-10 12:52:58 -08:00
Revar Desmera
8cd795cc36 Fixed typo in common.scad tests. 2019-11-10 12:36:50 -08:00
Revar Desmera
20e2008077 Finished adding regressions for coords.scad 2019-11-10 12:33:50 -08:00
Revar Desmera
902fb3e2cd Corrected coverage percentage calculation. 2019-11-09 23:06:58 -08:00
Revar Desmera
daf13d4e51 Added common.scad regression tests. 2019-11-09 22:55:10 -08:00
Revar Desmera
b8b19de737 Added coverage stats to regression coverage script. 2019-11-09 21:59:12 -08:00
Revar Desmera
a26bb92978 Added regressions and bug fixes for structs.scad 2019-11-08 18:31:37 -08:00
Revar Desmera
1a0b026da5 Fixed libfile portion of structs.scad docs. 2019-11-08 18:05:41 -08:00
Revar Desmera
3d0d34850d Added regressions for cubetruss.scad 2019-11-08 17:34:01 -08:00
Revar Desmera
6fb40df34a Added regressions for primitives.scad 2019-11-08 17:05:10 -08:00
Revar Desmera
94359dbf8c Added stack_rotate() regressions. 2019-11-08 16:49:46 -08:00
Revar Desmera
ba4a35229c Added regressions and bugfixes for skin.scad 2019-11-08 16:25:47 -08:00
Revar Desmera
38abe860f9 Tweaks to geometry,scad regressions to more correctly report coverage. 2019-11-06 23:53:16 -08:00
Revar Desmera
0b38d7b546 Fixed error in shuffle() 2019-11-06 23:42:00 -08:00
Revar Desmera
f8f015758a Completed arrays.scad regressions. 2019-11-06 23:40:05 -08:00
Revar Desmera
cdcc39ea16 Improved function coverage script. 2019-11-06 23:39:13 -08:00
Revar Desmera
aa7e1cf681 Added func_coverage.py script to identify untested functions. 2019-11-06 22:24:24 -08:00
Revar Desmera
5cca83958f gaussian_rand() -> gaussian_rands(), log_rand() -> log_rands() 2019-11-06 22:19:19 -08:00
Revar Desmera
5addbe8184 Added vnf.scad regressions and bugfixes. 2019-11-06 16:17:33 -08:00
Revar Desmera
59c48f37d6 Added regression tests and bugfixes for stacks.scad 2019-11-05 21:04:56 -08:00
Revar Desmera
28b086ea8d Added regressions and bugfixes for queues.scad. 2019-11-05 20:26:35 -08:00
Revar Desmera
029e3f612a Added edges.scad regression tests. 2019-11-05 18:16:00 -08:00
Revar Desmera
948e76d992 Added version_to_list() regression test for found error. 2019-11-05 17:35:58 -08:00
Revar Desmera
6100cae586 OpenSCAD cannot be relied on to return an error code on assert fail. 2019-11-05 17:31:58 -08:00
Revar Desmera
108173a0f1 edge_set() was misdocumented as edge() 2019-11-05 17:30:47 -08:00
Revar Desmera
231061a364 Added regression tests for version.scad 2019-11-05 16:04:39 -08:00
Revar Desmera
1170bbb489 Added version.scad 2019-11-05 13:33:48 -08:00