Commit graph

234 commits

Author SHA1 Message Date
Adrian Mariano
f72d89fae7 doc fix 2021-10-30 18:34:42 -04:00
Adrian Mariano
052200433b Make most path functions accept singleton regions
Replace check_and_fix_path with force_path
2021-10-29 19:29:51 -04:00
Adrian Mariano
8cfb77cf64 Remove general_line_intersection kludge 2021-10-26 20:34:33 -04:00
Adrian Mariano
b60123a886 columns fixes 2021-10-26 18:30:57 -04:00
Adrian Mariano
6de156528b doc fixes 2021-10-21 00:01:28 -04:00
Adrian Mariano
c98dc64d20 Merge remote-tracking branch 'upstream/master' 2021-10-20 23:39:52 -04:00
Adrian Mariano
76272d9d9a add region centroid capability and consolidate into one centroid
function for polygons, regions and VNFs.
Fix bug with anchors for linear_sweep (due to centerpoint issues)
Fix intersection anchors for vnfs when anchor vector intersects
in a path instead of a single point.
2021-10-20 22:44:55 -04:00
Revar Desmera
dbd30ce600
Merge pull request #697 from adrianVmariano/master
mostly doc fixes
2021-10-16 22:14:20 -07:00
Adrian Mariano
f7b08f1b9d reorder functions in array.scad
list_{de,in}creasing -> is_{de,in}creasing, add strict option to both
2021-10-16 23:01:52 -04:00
Revar Desmera
d8760681a9
Merge pull request #696 from adrianVmariano/master
vnf cleanup
2021-10-15 20:52:30 -07:00
Adrian Mariano
2d205a2568 subarray -> columns 2021-10-15 22:39:10 -04:00
Adrian Mariano
544bb5883e fix align_polygon & examples 2021-10-15 16:01:01 -04:00
Revar Desmera
e0c8015fc5
Merge pull request #694 from RonaldoCMP/master
Update geometry.scad
2021-10-14 18:36:52 -07:00
RonaldoCMP
2d5ce3b191 Update geometry.scad 2021-10-14 12:37:48 -03:00
RonaldoCMP
6b542191ce Update geometry.scad 2021-10-14 11:48:41 -03:00
Revar Desmera
12279bbee2
Merge pull request #693 from RonaldoCMP/master
Minor changes in triangulate code and docs,
2021-10-13 22:28:11 -07:00
RonaldoCMP
4d9a1d36ac Update geometry.scad 2021-10-13 23:31:26 -03:00
RonaldoCMP
da751e1e13 Update geometry.scad 2021-10-13 23:27:49 -03:00
RonaldoCMP
aef60324fd update geometry.scad 2021-10-13 23:16:14 -03:00
RonaldoCMP
f22d24ee15 Minor changes in triangulate code and docs, 2021-10-13 21:20:42 -03:00
Garth Minette
e89d303c52 Fixed See Also links in geometry.scad 2021-10-12 19:54:13 -07:00
RonaldoCMP
1b84a3129d Extend triangulate functionality and correct is_polygon_convex 2021-10-12 21:22:02 -03:00
Adrian Mariano
fd36b0020e add nonzero to grid2d
clean up dead code and add docs to geometry.scad
add faster (?) code for point_on_line
2021-10-11 20:25:11 -04:00
Adrian Mariano
006527e08e fix region offset bug
add box bound to point_in_polygon
region_region cutting for faster boolean ops
2021-10-10 15:03:30 -04:00
Adrian Mariano
9670fc0e68 fix segment endpoint handling for intersections 2021-10-07 23:20:46 -04:00
Adrian Mariano
7580b85877 bug fix 2021-10-07 22:26:23 -04:00
Adrian Mariano
a6eeb5025c don't deduplicate in is_polygon_clockwise 2021-10-07 21:32:58 -04:00
Adrian Mariano
9bb22dc7c5 doc tweaks 2021-10-07 21:31:58 -04:00
Adrian Mariano
1147e181c5 doc tweaks 2021-10-06 06:31:35 -04:00
Adrian Mariano
1cb7373284 doc fixes 2021-10-05 22:09:48 -04:00
Adrian Mariano
6e3efd68a4 big function re-org to eliminate debug.scad and hide affine.scad from docs 2021-10-01 00:30:28 -04:00
Adrian Mariano
261099e102 fix bug in spherical_random_points (non-uniform)
add region support to dashed_stroke
move a bunch of functions around for reorganization
2021-09-30 23:11:01 -04:00
Adrian Mariano
7c3990f2ed kludge to fix vnf_bend 2021-09-28 20:58:34 -04:00
Adrian Mariano
b7c5b789b7 point_in_polygon removed closed option from code, fix docs 2021-09-27 18:10:20 -04:00
Adrian Mariano
7776ae8e67 _assemble_path_from_fragments discards zero area polygons
split_path_at_self_crossings discards zero-length (single point) "segments"
polygon_line_intersection bugfix
remove debug echoes
2021-09-24 17:33:18 -04:00
Adrian Mariano
2f895cb8d1 hiding some infrastructure, added is_path_simple() 2021-09-22 14:59:18 -04:00
Adrian Mariano
3c6e9804a8 phillips_drive bugfix:
wing angle corrected from ~70 deg to 92 deg
   adjusted cutouts so length "b" in the spec is correct
      (this causes the cutout to not align with the end so it
       doesn't look as pretty, but the spec wins, right?)
   Changed construction method to avoid z-fighting which gave
       rise to failed render

doc fixes and shifting in paths.scad
decompose_path -> polygon_parts
2021-09-21 19:19:02 -04:00
Adrian Mariano
935a113fcf Examples fix
merge primitives stuff into shapes*.scad
move text commands to shapes3d.scad
rename common.scad
2021-09-16 21:50:12 -04:00
Adrian Mariano
856f54df32 removed old triangulation.scad
other file name changes
2021-09-15 23:12:51 -04:00
Adrian Mariano
6e61a6567f remove echos 2021-09-15 22:11:30 -04:00
Adrian Mariano
d957f556d6 bug fixes 2021-09-15 20:03:15 -04:00
Adrian Mariano
d78eb5213e Add "is" to geometry.scad predicates 2021-09-15 19:01:34 -04:00
Adrian Mariano
ea7b947bcb fix doc error 2021-09-15 18:27:01 -04:00
Adrian Mariano
33ca0d4a69 Resectioned distributors and vnf.
Error msg fix in shapes2d
section tweak in transforms
fixed polygon_line_intersection
2021-09-15 16:30:04 -04:00
Adrian Mariano
4f8ebb2e80 more error messages for star()
improve speed and flexibility of apply()
fix triangulation bug
add support for single point 2d solutions in polygon_line_intersection
2021-09-14 20:10:55 -04:00
Adrian Mariano
2ea90b7467 add fix for duplicate points in polygon_triangulation 2021-09-13 22:23:20 -04:00
Adrian Mariano
5a4d9554df err message tweak in star()
rearranged polygon_line_intersection to handle 2d and fixed
but where it didn't test polygon membership correctly.  Also
there was a bug with use of the bounded argument.
Added Ronaldo's triangulation.
2021-09-13 22:09:51 -04:00
Adrian Mariano
06c5912f02 doc tweaks
speedup tweak for _general_line_intersection
restore older faster is_polygon_clockwise
bugfix polygon_normal
2021-09-12 13:14:40 -04:00
Adrian Mariano
0388119cb4 doc tweak 2021-09-11 23:13:00 -04:00
Adrian Mariano
47f0c88c4a added example and explantion to point_in_polygon 2021-09-11 23:11:18 -04:00