Commit graph

238 commits

Author SHA1 Message Date
Alex Matulich
652d404ff1 minor copyedits to smooth_path documentation 2025-01-04 22:20:17 -08:00
Alex Matulich
6967134404 refactored to integrate curvy_path into smooth_path with new 'corners' method 2025-01-04 20:57:53 -08:00
Alex Matulich
ed683bde03 added curvy_path as a complement to smooth_path, updated squircle() 2024-12-29 21:06:35 -08:00
Adrian Mariano
d4a8fdb6fe fix rounded prism docs 2024-12-05 22:47:08 -05:00
Adrian Mariano
400f3efa97 skin automatically flips faces when paths are reversed; bugfix in rounded_prism 2024-11-03 07:26:41 -05:00
Adrian Mariano
3aff85aedc add structs.scad to std.scad; fix various it's typos in docs 2024-11-03 07:12:38 -05:00
Adrian Mariano
535646c01b fix rounded_prism bug 2024-10-14 16:11:19 -04:00
Adrian Mariano
c83253c814 doc tweak 2024-10-14 15:56:35 -04:00
Adrian Mariano
4d95f81352 comma fix 2024-10-12 12:30:52 -04:00
Adrian Mariano
9b2a32e574 rounded prism anchor improvements 2024-10-12 11:53:46 -04:00
Adrian Mariano
f0d90eed19 docs bugfixes 2024-09-26 19:03:50 -04:00
Adrian Mariano
0c266f6f85 join_prism fixes, and hole cutting examples 2024-09-26 16:58:20 -04:00
Adrian Mariano
de6d7a21d7 doc tweaks 2024-08-23 18:11:29 -04:00
Adrian Mariano
35f1dc4cb0 Change Extra Anchors to Named Anchors 2024-05-20 19:42:07 -04:00
Adrian Mariano
33de6a13ea fix offset_stroke anchor bug; doc tweaks for Extra Anchors 2024-05-20 19:01:05 -04:00
Adrian Mariano
323e72c16f offset_sweep anchor fixes, support for removing end faces 2024-02-27 16:52:09 -05:00
Adrian Mariano
a246027a68 fix example by adding $fn 2024-02-24 21:56:11 -05:00
Adrian Mariano
0297623063 fix path_sweep bug where it fails on paths with a "not a region" error 2024-02-18 10:21:27 -05:00
Adrian Mariano
4d3c12a22c Merge branch 'master' of https://github.com/adrianVmariano/BOSL2 2024-02-15 18:32:34 -05:00
Adrian Mariano
9e6b49ad3b fix anchors for offset_sweep 2024-02-15 18:32:17 -05:00
Revar Desmera
e58cfa0ba1 Minor docs fixes. Removed VersionBump workflow. 2024-02-06 10:26:34 -08:00
Adrian Mariano
8f80872ba5 allow full cuboid rounding in rounded_prism; improve error checking 2024-02-04 12:23:11 -05:00
Adrian Mariano
f078efe314 fix center anchors, offset_sweep anchors 2024-02-01 21:11:56 -05:00
Adrian Mariano
d6fe226fca Fix teardrop for threaded screws 2024-01-27 10:52:54 -05:00
Adrian Mariano
e1876c3432 better error check in arc()
bugfix for join_path()
modifications for bevel gear to support internal teeth
2023-10-18 20:24:48 -04:00
Adrian Mariano
1e5a2e345d fix bug in round_prism for vertical caps 2023-10-03 18:57:39 -04:00
Adrian Mariano
2b02c890f0 docs update 2023-09-16 09:51:24 -04:00
Adrian Mariano
44fea4047e offset_sweep "extra" bugfix 2023-09-03 22:19:29 -04:00
Revar Desmera
07d487e0fd All the SynTags. 2023-05-29 21:48:48 -07:00
Adrian Mariano
fcfa1568c0 bug fix 2023-05-15 20:02:07 -04:00
Adrian Mariano
168ae7968e fix various stroke() bugs, add attachable() to some modules 2023-04-23 21:38:27 -04:00
Revar Desmera
2d608c5602 Tweak Topics, See Alsos in rounding.scad 2023-04-05 20:22:38 -07:00
Adrian Mariano
a9d44c75bd add synopsis to rounding 2023-04-05 21:19:26 -04:00
Adrian Mariano
d138c0d07e fix text3d, various doc fixes, remove spurious arrows from path_text
and make path_text a null attachable so coloring works.
2023-03-12 21:40:01 -04:00
Adrian Mariano
036da1a3ef Rename close_path and cleanup_path to list_wrap and list_unwrap 2023-03-02 19:40:12 -05:00
Adrian Mariano
33442c4230 better error handling in offset_stroke for invalid end treatment 2023-02-01 18:40:29 -05:00
Adrian Mariano
554d197976 doc fixes 2023-01-20 07:10:57 -05:00
Adrian Mariano
14e12d8456 assert cleanup 2022-11-09 16:54:27 -05:00
Adrian Mariano
68a26db513 Expose path_cut_points() 2022-10-12 23:38:20 -04:00
Adrian Mariano
7d9ec509d2 fix typo 2022-09-24 23:08:14 -04:00
Adrian Mariano
6a105f018f fix problem with offset_stroke function when closed=true 2022-09-24 22:59:44 -04:00
Adrian Mariano
4d986cbea5 make offset_sweep attachable 2022-09-24 22:38:39 -04:00
Adrian Mariano
a6d38a1e79 screws doc fix, small rounding bugfix 2022-05-27 01:26:04 -04:00
Adrian Mariano
c242efecd5 bugfix for offset_sweep check_valid 2022-05-06 19:03:52 -04:00
Adrian Mariano
9433b05a65 file summary improvements and tweaks 2022-04-21 00:26:20 -04:00
Garth Minette
d9691b3b4a Fixed interior_fillet(). Refactored circle_* functions. 2022-04-06 19:37:00 -07:00
Adrian Mariano
7afef10a79 usage messages fixes, req_children additions 2022-03-31 18:12:23 -04:00
Adrian Mariano
155de32d9a add req_children() and apply to distributors and rounding.
fix usage texts in paths.scad
2022-03-30 19:44:46 -04:00
Adrian Mariano
058f2b0162 doc fixes 2022-03-30 18:31:37 -04:00
Adrian Mariano
c5ea11df87 fix usage messages 2022-03-30 00:38:25 -04:00
Adrian Mariano
dff0cb6a0b fix examples for display in rounding.scad
hide stuff in gears.scad
add kern option to path_text
2022-03-29 23:21:32 -04:00
Adrian Mariano
58836abd54 bug fix 2022-03-28 22:07:40 -04:00
Adrian Mariano
5209898aab tweak 2022-03-28 21:36:00 -04:00
Adrian Mariano
c135de46d3 add join_prism 2022-03-28 20:52:24 -04:00
Adrian Mariano
26855429d8 move color_this and recolor into color.scad
doc tweaks for rounding
2022-03-27 19:23:47 -04:00
Adrian Mariano
6b02a595a2 add exponential dist, IDENT constant
doc fixes
2022-03-25 23:35:07 -04:00
Adrian Mariano
7d6a2b593f Force N parameters to n in most places 2022-03-13 21:40:55 -04:00
Adrian Mariano
8861464dbb doc fixes 2022-03-07 19:43:12 -05:00
Adrian Mariano
600175f205 rework rounding docs, change "length=" to "width=" for chamfers. 2022-01-19 21:11:34 -05:00
Adrian Mariano
43ae4efe5c rework docs 2022-01-19 19:35:02 -05:00
Adrian Mariano
6fdb591ac0 changed "chamfer" to "length"
added figures for circle and chamfer
2022-01-18 23:11:22 -05:00
Adrian Mariano
d81eb6d0e0 change "flat" to "chamfer". 2 move examples 2022-01-17 22:34:50 -05:00
Adrian Mariano
40c4079be5 A couple more examples 2022-01-17 11:21:42 -05:00
Adrian Mariano
a4c3717e49 round_corners: added "flat" option for chamfers, added examples
for chamfer and two pass examples of chamfer/rounding
2022-01-17 09:39:52 -05:00
Adrian Mariano
c93f2041dc doc tweaks
fix interface to bezier_curve()
2022-01-09 09:55:26 -05:00
Adrian Mariano
b1ed2d0c6c bezier surface reorg, removed triangular bezier patches 2022-01-09 01:27:15 -05:00
Adrian Mariano
f5d0854549 debug function rename
attachment function reorder
add axes to egg examples
2022-01-08 23:08:34 -05:00
Adrian Mariano
d8aa4ced71 misc doc fixes and organization
beziers reorg
arc bug fix for endpoint=false and N=undef
2022-01-07 14:23:01 -05:00
Adrian Mariano
70afd85c18 fix smooth_path and path_to_bezier to handle 1-regions 2022-01-04 23:11:34 -05:00
Adrian Mariano
fe9a9a5d01 Change to allow roundings that fully occupy segment with deduplicate 2022-01-02 18:04:24 -05:00
Adrian Mariano
ff1ff2d2b6 Report as error case where roundings exactly cover a segment 2022-01-02 17:30:01 -05:00
Revar Desmera
59bf523908 Lots of docs tweaks for openscad-docsgen v2 2021-12-13 15:48:30 -08:00
Adrian Mariano
477dd55781 remove polygon_shift, hide noncollinear_triple
modify glued circle to not produce duplicate points
2021-11-11 18:50:26 -05:00
Adrian Mariano
69e8491659 doc tweaks
vnf_merge split
2021-11-11 08:45:30 -05: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
a75a368dd5 Move linear algebra to linalg.scad
columns->column because the multiindex case is handled by submatrix
and also it never occurs in the code.
2021-10-26 16:45:14 -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
Adrian Mariano
2d205a2568 subarray -> columns 2021-10-15 22:39:10 -04:00
Adrian Mariano
acb65b3298 allow count to take a list as input
vnf_wireframe does not draw unreferenced vertices
some error checking
2021-10-14 18:29:52 -04:00
Adrian Mariano
afe75d0e3f add starts to threaded rod/nut
remove vnf_add_face(s)
add vnf_from_polygon
2021-10-05 18:23:20 -04:00
Adrian Mariano
0093d10993 use projection before calling is_path_simple in rouinded_prism
rewrite vnf_bend so it doesn't rely on pseudo 3d polygon self-intersection
2021-10-05 16:14:36 -04:00
Adrian Mariano
2f895cb8d1 hiding some infrastructure, added is_path_simple() 2021-09-22 14:59:18 -04:00
Garth Minette
0260d92187 Correction for _path_cut_points() rename. 2021-09-19 20:08:38 -07: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
2494de9368 reordering and moving for improved docs
removed xxrot and xxflip
2021-09-11 18:48:23 -04:00
Adrian Mariano
14ae1795bb fix permutation docs
consolidate "line/segment/ray" functions to just "line" with bounded option
add RAY, LINE and SEGMENT constants
2021-09-09 18:32:58 -04:00
Adrian Mariano
15297a8b19 Change offset() to respect $fn/$fs.
Remove maxstep parameter from offset.
Modify offset_sweep and offset_stroke to no longer use offset_maxstep
or maxstep.
Added a bit of error checking to those two functions so if you pass in
the wrong end treatment it gives a less cryptic type of error
Fixed arc() so it returns 2 points when you request 2 points (instead
of 3)
Fixed teardrop to properly ceil() its segs value.
2021-08-31 18:13:15 -04:00
Adrian Mariano
3e670bb4c6 doc fix 2021-07-27 21:13:02 -04:00
Adrian Mariano
1cca11ab28 Removed unnecessary requirement for splinesteps>=3, added some error
checks on splinesteps, added example of using splinesteps=1 to chamfer
in rounded_prism.

Added rot_resample, rot_inverse.
2021-07-04 11:25:54 -04:00
Garth Minette
5a355434ce Tweaks for docs usage lines. 2021-06-26 20:59:33 -07:00
Adrian Mariano
493ef62826 normalized project_plane and lift_plane to match other transform
functions.
2021-04-21 22:49:06 -04:00
Adrian Mariano
dea5949df8 Fix face orientation bugs in vnf_vertex_array, rounded_prism,
bezier_patch_degenerate.  Added reverse option to count().
2021-04-12 20:15:01 -04:00
Adrian Mariano
d4d5794ef2 fixed sum to handle larger input
added all_equal
added vnf_tri_array as public
added bezier_patch_degenerate as public
2021-04-11 22:29:25 -04:00
Garth Minette
2225257f09 Tweaks suggested by @adrianVmariano. 2021-04-08 17:27:43 -07:00
Garth Minette
8bd3ef8a74 Removed range(), rangex(). Added count(). 2021-04-07 20:57:45 -07:00
Adrian Mariano
dd13967049 Cleanup of path_resample, add tests for round_corners, fix
bezier_curve and arc to always return n points for either endpoint
setting.
2021-04-02 16:59:29 -04:00
Garth Minette
0b17bf5930 Brought slice() in line with select() indexing, without wrapping. Replaced a lot of select() and slice() calls with last(), list_head(), and list_tail() calls. 2021-03-30 00:46:59 -07:00
Garth Minette
d7cb503ffc Replace most trivial uses of slice() with faster list_head() and list_tail() 2021-03-25 00:23:36 -07:00
Adrian Mariano
f90e89c761 rewrote check_and_fix_path. Old version was broken/undef errors
added regions_equal (but probably not best version)
removed debug echo from roundinglscad
assert on invalid arc() radius inpu
new "fast_distance" method for skin()
tweaked skin() docs
support regions for path_sweep
2021-03-12 18:40:24 -05:00