Commit graph

68 commits

Author SHA1 Message Date
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
6901c02fa9 Fixed align_polygon() example. 2019-11-19 18:19:11 -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
bb92d788ef Added reverse_polygon() and improved ccw_polygon() and clockwise_polygon() 2019-11-17 18:19:55 -08:00
Revar Desmera
25256f78ad Fixed consistency of plane_from_pointslist() 2019-11-03 18:45:53 -08:00
Revar Desmera
bca3ef74de find_noncollinear_points() was, in fact, failing to test for collinearity. 2019-10-30 17:44:03 -07:00
Revar Desmera
faea648e66 Simplified list_rotate() and polygon_shift() 2019-10-30 01:19:34 -07:00
Revar Desmera
54eea4a6d6 Some geometry.scad fixes and assert()s added. 2019-10-29 22:46:00 -07:00
Revar Desmera
50acb3c0b0 Various bugfixes, optimizations, and docs improvements found via regressions. 2019-10-25 15:16:48 -07:00
Revar Desmera
c0a131549f Added find_circle_tangents() 2019-10-21 18:59:35 -07:00
Revar Desmera
4a2fb2ee56 Split VNF structures out into vnf.scad 2019-10-21 16:44:39 -07:00
Revar Desmera
8d56aab37b Sped up path_self_intersections() a lot. 2019-09-24 23:32:30 -07:00
Revar Desmera
d4677923ba Rewrote decompose_path() and assemble_path_fragments() 2019-09-24 03:58:45 -07:00
Revar Desmera
95952ee971 Added split_path_at_self_crossings() and split_path_at_region_crossings() 2019-09-21 01:57:50 -07:00
Revar Desmera
3846a367ee Added path_self_intersections(), decompose_path(), and fixed inverted t result in _general_line_intersection() 2019-09-19 02:44:28 -07:00
Revar Desmera
a035b9b09a Merge branch 'master' of github.com:revarbat/BOSL2 2019-08-29 18:01:05 -07:00
Revar Desmera
4334413781 Changed vnf_vertex_array() to take a nested 2D array of 3D points. 2019-08-29 17:58:12 -07:00
Adrian Mariano
d2ccdc331f Added get_height() and no_children() to common.scad.
Changed the epsilon in one of offset's subfunctions from 1e-4 to
1e-6.
Modified rounded_sweep() to take h, l, or height, and to have default
behavior if height is omitted.  It also quantizes the path to 1/1024.
Added no_children check to module offset_stroke().
2019-08-28 21:15:41 -04:00
Revar Desmera
da1086b71b Fix for vnf_add_face() 2019-08-27 03:40:49 -07:00
Revar Desmera
57236506ff Added VNF functions and modules. 2019-08-27 00:34:09 -07:00
Revar Desmera
edda3bb85d Added polygon_shift() 2019-08-21 23:52:03 -07:00
Revar Desmera
700acae000 Added polygon_shift_to_closest_point(), clockwise_polygon(), ccw_polygon() 2019-08-20 20:47:29 -07:00
Revar Desmera
eb313d30f5 Added noncollinear_points(), first_noncollinear(), closest_point(), furthest_point() and plane_from_points() 2019-08-19 21:11:19 -07: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
0843bf7362 Fixed typo in find_circle_3points() 2019-08-16 02:06:04 -07:00
Revar Desmera
00b11d130c Fix for bug #101 2019-08-11 22:15:37 -07:00
Revar Desmera
e8254cec7d Fix for issue #82 2019-08-08 21:10:41 -07:00
Adrian Mariano
e4431d4940 Fixed bug with check_and_fix_path() naming. Also added examples to rounded_sweep. 2019-07-22 22:40:49 -04:00
Revar Desmera
2427e09dee Merge branch 'master' of github.com:revarbat/BOSL2 2019-07-18 21:49:11 -07:00
Revar Desmera
52ab40b4f5 Added cleanup_path() and cleanup_region() 2019-07-18 21:48:32 -07:00
Adrian Mariano
3719378f49 Changed make_path_valid to check_and_fix_path 2019-07-18 21:27:57 -04:00
Adrian Mariano
20eae2b5d2 Changed offset() to check polygon orientation when closed==true.
Changed rounded_sweep() to work with updated offset().
Added make_path_valid() and use it in rounded_sweep for better error
handling and to support single component regions.
Added divided box example to rounded_sweep.
Updated examples to work with updated offset().
2019-07-18 19:21:08 -04:00
Revar Desmera
cf15742a3b Fixed processing of regions in offset() 2019-07-17 16:33:08 -07:00
Revar Desmera
d1abaf891d Added tri_calc() 2019-07-17 01:49:51 -07:00
Revar Desmera
ad59d88ce2 Tweaked offset() description formatting. 2019-07-16 15:18:00 -07:00
Adrian Mariano
e9ae6355e5 added spaces in offset docs 2019-07-16 17:17:32 -04:00
Adrian Mariano
a89c324b4c Improved examples for offset(), and slight docs tweak. 2019-07-16 16:51:53 -04:00
Revar Desmera
aee7e4d9bd
Merge pull request #74 from adrianVmariano/master
Added repeat to turtle.  Added centroid to geometry.scad.
2019-07-15 19:11:26 -07:00
Adrian Mariano
a71868431b Added repeat to turtle. Added centroid to geometry.scad. 2019-07-15 20:14:29 -04:00
Revar Desmera
958786daf6 Added find_circle_3points() 2019-07-15 16:41:01 -07:00
Revar Desmera
81fd73588f Moved heightfield() to shapes.scad. 2019-07-14 15:10:13 -07:00
Revar Desmera
72ecdbac5a Fixed references to roundings.scad 2019-07-13 15:57:24 -07:00
Revar Desmera
3eb39d0018 Changed close argument of stroke() to closed. 2019-07-12 13:11:13 -07:00
Revar Desmera
9f0d55f5b3 triangle_area2d() -> triangle_area(). Added polygon_area() 2019-07-10 13:37:23 -07:00
Revar Desmera
e00ce0d81f Removed right_of_line2d() 2019-07-10 13:22:24 -07:00
Revar Desmera
d60cd9411f Make is_path() test for more than one point in a path. 2019-07-10 13:12:32 -07:00
Revar Desmera
a008f5aed7 Added heightfield() 2019-07-09 18:46:47 -07:00
Revar Desmera
baae135ab3 Fixes for point_in_region(). Fixed assemble_path_fragments() to detect and shortcut self intersecting path fragment sets. 2019-07-04 23:47:42 -07:00
Revar Desmera
d64b836e8b Tweaked offset() to work on regions as well as paths. 2019-06-26 18:56:33 -07:00