Commit graph

55 commits

Author SHA1 Message Date
Revar Desmera
af0e285781 Added is_list_of(). Improved is_path() and is_vector() tests. 2020-03-02 13:47:43 -08:00
Revar Desmera
c6ec9c8820 Moved path functions from geometry.scad to paths.scad 2020-03-01 16:12:51 -08:00
Revar Desmera
6651e1be42 Renamed orient_and_anchor() to attachable() and refactored arguments and internals. 2020-02-29 13:16:15 -08:00
Adrian Mariano
f8fc8cb544 Adds sweep and new version of path_sweep to skin.scad, which probably
needs a name change.  Adds apply(), apply_list() and
affine_frame_map() to affine.scad.  Adds derivative calcluation to
math.scad.  Adds path_tangent, path_normal, path_curvature and
path_torsion functions.  Adds path_length_fraction().
Fixed bug in reindex_polygon where it randomly reverses a 3d path (due
to clockwise check that is bogus in 3d) and put a check in
polygon_is_clockwise to trap this case.
2020-02-27 17:32:03 -05:00
Revar Desmera
7a92ffdbaf Reorganized functions in paths.scad 2020-01-31 16:37:27 -08:00
Revar Desmera
8da60800c9 Consolidated path code into paths.scad 2020-01-30 14:00:10 -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
0acf0c829c Added closed= to trace_polyline() 2019-12-26 21:40: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
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
Adrian Mariano
4ea33f9bf3 Added subdivide_paths, reindex_polygon and align_polygon. 2019-11-19 17:42:11 -05: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
659584b6ea Added segment_closest_point(), line_closest_point(), and path_closest_point() 2019-08-16 21:22:41 -07:00
Revar Desmera
65b78f90ae mat3_to_mat4() -> affine2d_to_3d() and various trailing space and formatting issues. 2019-08-09 13:07:18 -07:00
Adrian Mariano
7855cf98c0 Tweaked pentagram example for turtle()
path_cut had a bug when invoked with a single distance
_bezcorner would fail if $fn wasn't set and $fs was too large
added offset_stroke()
2019-08-01 16:36:53 -04:00
Revar Desmera
e2d286bbf1 Fixed formatting error in docs for path_cut() 2019-07-12 13:21:23 -07:00
Revar Desmera
3eb39d0018 Changed close argument of stroke() to closed. 2019-07-12 13:11:13 -07:00
Adrian Mariano
b8526998c7 Added path_spread() and path_cut() 2019-07-01 19:25:00 -04:00
Revar Desmera
2f6671e56d Long overdue path and bezier function and module name cleanups. 2019-06-24 00:32:13 -07:00
Revar Desmera
2886cd907b Made trace_polyline() not have horrible joints. 2019-06-21 17:38:14 -07:00
Revar Desmera
88314af127 Moved some paths functions to geometry.scad 2019-06-17 00:10:01 -07:00
Revar Desmera
f585b1fecd Added regions and compound boolean 2d geometry. 2019-06-16 23:57:05 -07:00
Revar Desmera
ac9ef3b9e4 Docs tweaks 2019-05-26 23:56:41 -07:00
Revar Desmera
09f0351d22 Removed references to path2d_regular_ngon() 2019-05-26 23:43:15 -07:00
Revar Desmera
258e9cfe03 removed path2d_regular_ngon() in favor of regular_ngon() 2019-05-26 23:39:39 -07:00
Revar Desmera
f378b70151 Added in range step of 1 to avoid errors. 2019-05-26 22:34:46 -07:00
Revar Desmera
bb10d40dc7 Fixed docs links. 2019-05-26 12:47:50 -07:00
Revar Desmera
7101e680fc Removed spurious children() copy in extrude_hollow 2019-05-26 11:55:32 -07:00
Revar Desmera
16919f39c3 Reworked orientation to use vectors. Added spin. 2019-05-25 23:31:05 -07:00
Revar Desmera
88ea4c94d9 Fixed and simplified anchoring. 2019-05-17 14:41:45 -07:00
Revar Desmera
9645aef2a9 Renamed matrix[34]_* -> affine[23]d_*. 2019-05-13 23:11:55 -07:00
Revar Desmera
c79e887612 Removed per-file copyright messages in favor of the LICENSE file. 2019-05-03 12:30:20 -07:00
Revar Desmera
69d882b4d5 Cleaned up dependency includes in non-std libfiles. 2019-05-03 12:19:51 -07:00
Revar Desmera
dcab23158a Fixed anchor for extrude_2d_hollow. 2019-05-03 11:32:40 -07:00
Revar Desmera
6be09b7669 Fixed extrude_2d_path_along_spiral()'s anchoring. 2019-05-03 11:27:25 -07:00
Revar Desmera
5a16152416 Renamed align to anchor. 2019-04-22 20:55:03 -07:00
Revar Desmera
cc36235736 Updated copyright years. Split math.scad up. Enabled attach for lots of shapes. Removed backwards compatability. 2019-04-19 17:02:17 -07:00
Revar Desmera
1d6aefc867 Removed all uses and incudes. Document all includes needed for each file. Added std.scad include. 2019-04-19 00:25:10 -07:00
Revar Desmera
a46ea27fca Changed all BOSL references to BOSL2. 2019-04-18 23:45:46 -07:00
Revar Desmera
6b0e796462 Renamed all V_ constants. Removed ALIGN_ constants. 2019-04-18 23:32:17 -07:00
Revar Desmera
96739c3ea0 Added convex_hull() 2019-04-16 15:34:54 -07:00
Revar Desmera
48140e507f Added path_length() 2019-03-26 23:22:38 -07:00
Revar Desmera
228f4c4134 vector3d_angle -> vector_angle 2019-03-25 03:52:09 -07:00
Revar Desmera
e4ab4a9527 Minor hollow extrude bugfix. 2019-03-23 03:01:06 -07:00
Revar Desmera
9a3c25d3d3 Massive reworking of documentation production. 2019-03-22 21:13:18 -07:00
Revar Desmera
f92d2fe15d Updated code to use xyz_to_spherical() 2019-02-06 03:35:13 -08:00
Revar Desmera
67dbb575c6 Added extrude_from_to() 2019-02-03 00:12:37 -08:00
Revar Desmera
c72b9d0459 Rewrote extrude_2d_shapes_along_3dpath() to use quaternions, fixing extrusion rotation issues. 2019-02-02 02:19:05 -08:00
Revar Desmera
93acbd6011 Fixed example in paths.scad. 2018-11-25 19:13:25 -08:00