Commit graph

262 commits

Author SHA1 Message Date
Adrian Mariano
e653be471f Move edges.scad content to attachments.scad
Add subsections to attachments.scad
2021-11-19 22:20:01 -05:00
Adrian Mariano
475129fd95 revamp extruded region attachables and apply to linear_sweep. 2021-11-17 13:38:07 -05:00
Adrian Mariano
cd664f830c attachment bugfixes 2021-11-16 22:13:00 -05:00
Adrian Mariano
47bf93e6cb more anchoring fixes 2021-11-16 20:46:37 -05:00
Adrian Mariano
45e64f309c bug fixes 2021-11-16 20:33:51 -05:00
Adrian Mariano
d576526b60 VNF interface update skin.scad and shapes2d.scad 2021-11-16 18:49:37 -05: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
024011ea5e list_remove fix
rename array_dim to list_shape
2021-10-27 20:21:12 -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
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
Adrian Mariano
2d205a2568 subarray -> columns 2021-10-15 22:39:10 -04:00
Adrian Mariano
a65315b876 fix examples 2021-10-15 16:22:36 -04:00
Adrian Mariano
cd85b3b1f4 change region_faces to vnf_from_region and move to vnf.scad
remove secret merge option from vnf_triangulate
add examples
add vnf_clean_unrefs
2021-10-14 22:36:21 -04:00
Adrian Mariano
9bb22dc7c5 doc tweaks 2021-10-07 21:31:58 -04:00
Adrian Mariano
33484f2c4b misc bugfixes 2021-10-06 21:53:46 -04:00
Adrian Mariano
71b22e5850 helix rewrite
make skin() take regions
2021-10-01 21:27:52 -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
60c3a99e90 moved some functions around and renamed 2021-09-28 19:08:47 -04:00
Adrian Mariano
c15ff24edd use is_bool_list 2021-09-27 18:08:30 -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
ef9f54c369 Fix Examples: that should be Example:
Add closed option to path_merge_collinear
Add nonzero to decompose_path
offset() bugfix for paths whose endpoints are equal
vnf doc tweaks
2021-09-20 18:34:22 -04:00
Adrian Mariano
9ca77eed1b path.scad cleanup (hid/removed several functions) 2021-09-18 19:11:08 -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
9d2bb59325 remove modulate_circle, move jitter_poly to shapes2d,
reorder stuff in skin.scad and add top text
2021-09-07 18:47:08 -04:00
Adrian Mariano
0aad39c7e5 Move affine3d_frame_map to transforms.scad and rename to frame_map.
Add module version.  Change all calls.
2021-09-06 18:07:03 -04:00
Garth Minette
5a355434ce Tweaks for docs usage lines. 2021-06-26 20:59:33 -07:00
Garth Minette
5ee224f2d3 Added point_segment_distance(), segment_distance(). Renamed distance_from_line() -> point_line_distance(). Renamed distance_from_plane() -> point_plane_distance() 2021-06-10 15:49:44 -07:00
Adrian Mariano
15c79d8f6a doc tweak, new example 2021-04-24 17:45:38 -04:00
Adrian Mariano
75b974906d _UNDEF definition didn't work; moving to constants.scad fixed this.
Fixed vnf.scad so that "convex" is efficient and handles degenerate
case in vnf_vertex_array
Fixed skin to correctly handle multi-section "distance" skins.
2021-04-14 16:32:47 -04:00
Adrian Mariano
f2914f0efb remove debug echo 2021-04-13 20:45:14 -04:00
Adrian Mariano
27928eac70 bug fixes for caps and style 2021-04-13 20:21:19 -04:00
Adrian Mariano
4a179920cf Speed improvement for vnf_vertex_array by changing deduplicate
testing.  Add "min_edge" style to vnf vertex array.
eliminate _skin_core, replace with vnf_vertex_array, add style option
to all modules/functions.
fix bug in path_normals (not normalized)
2021-04-13 19:27:42 -04:00
Garth Minette
8bd3ef8a74 Removed range(), rangex(). Added count(). 2021-04-07 20:57:45 -07: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
df9d045475 Added subdivide_long_segments(), path_add_jitter(), jittered_poly() 2021-03-17 18:27:10 -07:00
Adrian Mariano
737baed34c further type checking fixes 2021-03-14 12:08:20 -04:00
Adrian Mariano
35c2d7df42 doc tweaks for skin
bug fixes for is_matrix, is_vector, and new tests for same
2021-03-14 10:25:22 -04:00
Adrian Mariano
4dc2d4cfe5 Fix bug in skin, add some complex stuff to math and tests 2021-03-12 20:36:34 -05: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
Adrian Mariano
863c410404 doc tweaks for skin(), faster 2d hull() 2021-03-04 18:34:17 -05:00
Revar Desmera
6db9ec6f17
Merge branch 'master' into revarbat_dev 2021-02-20 22:49:57 -08:00
Garth Minette
e3369b6b6e skin.scad docs fixes. 2021-02-20 22:47:50 -08:00
Revar Desmera
799686b7ca
Merge pull request #427 from adrianVmariano/master 2021-02-20 12:46:54 -08:00
Adrian Mariano
852eed292d doc fixes and bug fixes for undef 2021-02-20 11:45:10 -05:00
Garth Minette
6cfbc538fc Re-work to use openscad_docsgen package. 2021-02-19 19:56:43 -08:00
Garth Minette
320518194f Various arrays.scad docs updates. Bugfixes. 2021-01-24 23:26:39 -08:00
Garth Minette
b6cfda0537 Remove apply_list(). Renamed affine_frame_map() to affine3d_frame_map() 2021-01-20 13:36:41 -08:00
Adrian Mariano
caac76e23e doc updates 2021-01-14 22:39:14 -05:00
Adrian Mariano
5650171ed6 doc fixes for skin 2021-01-12 22:15:20 -05:00
Garth Minette
f9aa81e178 Improved docs gen script for Returns:, Custom:, Includes:, Topics:, and positional/named args spits. 2021-01-05 01:20:01 -08:00
Adrian Mariano
5269b26703 Improved error message for skin() 2020-12-31 08:58:22 -05:00
Adrian Mariano
081ef23eba Added turtle3d. Typo fixes in docs. 2020-12-11 19:01:03 -05:00
Adrian Mariano
008d1c5002 Add path_sweep2d and change path_sweep to accept ccw shape without
producing inverted output.  Minor doc fixes.
2020-12-08 21:41:50 -05:00
Garth Minette
90eaf73293 Bugfix for sweep() endcaps. 2020-11-17 17:22:38 -08:00
Garth Minette
1e93276747 Enable using path_sweep() with a region. 2020-11-17 14:41:14 -08:00
Garth Minette
9d5d7cbc4f Enhanced sweep() to accept region input. 2020-11-17 14:25:08 -08:00
Garth Minette
e4f2497863 Changes all references to polyline to path. 2020-11-16 17:50:08 -08:00
Adrian Mariano
db54881dd3 Added scutoid example 2020-10-08 15:59:28 -04:00
Revar Desmera
066f4ab00f
Merge pull request #289 from adrianVmariano/master
minor doc fixes and bugfix for closed path tangents with path_sweep
2020-10-05 17:22:36 -07:00
Adrian Mariano
c71112347e minor doc fixes and bugfix for closed path tangents with path_sweep 2020-10-05 17:40:32 -04:00
Garth Minette
38873d8ef9 Fixed a bunch of docs errors with Usage headers. 2020-10-03 20:29:35 -07:00
Adrian Mariano
2ff93f34cd Added attachment support to all modules, and bug fixed rounded_prism
(problem introduced by error checking in det2), and fixed broken
example in rounding.
2020-08-17 18:43:58 -04:00
Adrian Mariano
45a8b3ec6a Moved no_children to common.scad, and changed references to
echo_warning in skin.scad and polyhedra.scad.
2020-08-01 15:54:58 -04:00
Garth Minette
b5d465cf1e docs_gen.py now shows more docs errors. 2020-07-27 15:15:34 -07:00
Adrian Mariano
32cb24f29b fixed skin bug 2020-07-07 23:25:11 -04:00
Adrian Mariano
e9fe42cae2 fix doc typos 2020-07-06 22:30:13 -04:00
Revar Desmera
53c1e25395 Standardize indention on spaces, not tabs. 2020-05-29 19:04:34 -07:00
Adrian Mariano
68a4741d4f saved the file this time 2020-05-21 16:44:56 -04:00
Adrian Mariano
f190bfdd55 fixed round_corners invocation 2020-05-21 16:44:36 -04:00
Adrian Mariano
320b53326d Added check for repeated end points to path_sweep 2020-05-15 17:27:55 -04:00
Revar Desmera
182688cf02 Implemented solution for issue #159 2020-04-29 22:45:41 -07:00
Revar Desmera
ff96db86d2 Removed overrides for square() and circle() builtin modules. 2020-04-25 04:00:16 -07:00
Adrian Mariano
cf18d8a264 fixed broken examples due to ngon change. 2020-04-23 17:22:29 -04:00
Revar Desmera
c52101e0a0 Removed debug echo from skin() 2020-03-17 01:14:26 -07:00
Revar Desmera
863398eb24 Tweak to force example regen. 2020-03-05 03:56:35 -08:00
Revar Desmera
4aee7133d3 Fixed sweep() example formatting. 2020-03-05 03:40:47 -08:00
Adrian Mariano
fcbeadc363 renamed replist to repeat
fixed normalization issue in path_to_bezier
2020-03-04 23:22:39 -05:00
Adrian Mariano
51af394c24 Added force_list, path_to_bezier, smooth_path, associate_vertices,
improved skin and sweep error handling.  Allow path_sweep to take a 2d
path.
2020-03-04 20:24:00 -05:00
Revar Desmera
07bfcd6a57 Renamed normalize() to unit() 2020-03-02 19:30:20 -08:00
Revar Desmera
46b1625c1a
Merge branch 'master' into master 2020-03-01 14:20:32 -08:00
Adrian Mariano
d0e625809e fixed last example for better view 2020-02-29 23:29:00 -05:00
Adrian Mariano
ca167f6bb1 moved affine_frame_map to affine.scad 2020-02-29 22:54:33 -05:00
Revar Desmera
fd3d812f7e More docs example image bugfixes. 2020-02-29 19:17:52 -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
0f7c7956d1 Tweaked skin() examples. 2020-02-13 21:58:46 -08:00
Revar Desmera
c533dfe315 Adjusted skin() docs and example images. 2020-02-13 18:03:19 -08:00
Adrian Mariano
ed205d713f added mobius strip 2020-02-13 18:28:26 -05:00
Adrian Mariano
0c68d60e98 Tweaked names, moved plane_line_angle to geometry.scad 2020-02-13 18:06:35 -05:00
Adrian Mariano
9ce9d708a4 Fixed bug with slices = list, added code to avoid duplicate vertices
when only resampling methods are used.  Renamed some functions.
2020-02-12 20:08:21 -05:00
Adrian Mariano
7e2bc6d5cf Fixed handling of list valued slices. Added more examples. Removed
debug echoes.
2020-02-11 17:15:43 -05:00
Adrian Mariano
dba4e2e09b Reworked interface substantially and added a bunch of examples. 2020-02-10 21:02:24 -05:00
Adrian Mariano
800ee715db Hopefully fixed bug with wrap-around for the symmetric distance method
where you get the wrong result when points from both ends of a curve
map to the same vertex.  (Regular distance method I think is still broken.)
2020-02-06 18:51:28 -05:00
Adrian Mariano
8171fbc8f6 Added "sym_distance" method. Through clever pruning strategy, may
actually be faster than old method.
2020-02-05 22:24:30 -05:00
Adrian Mariano
00ba569a86 Added some error handling on profiles to superskin().
Renamed skin to _skin_core and simplified it to remove methods.
Renamed superskin to skin.
Correctly pass closed and caps.
2020-02-03 21:36:06 -05:00
Adrian Mariano
927e50c5ca Fixed alignment problem in tangent_align.() 2020-02-03 17:46:42 -05:00
Adrian Mariano
0aabf2cf47 Developmental superskin() wrapper and various supporting stuff.
Code in a rough state at this point.
2020-02-02 22:43:49 -05:00
Revar Desmera
28f07a997f Tweaked uniform skin method. 2020-02-02 19:33:09 -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
674f276362 Added method="convex" to skin() 2020-01-29 19:40:02 -08:00
Revar Desmera
5ccf1e26bd Added convexity= to skin() and vnf_polyhedron() 2020-01-09 20:10:46 -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
Adrian Mariano
c0d18ab0b1 Corrected processing of $fn for round_corners, added two examples
to skin (from list comp demos) and added another error check to zip.
2019-11-13 18:17:30 -05:00
Revar Desmera
78197e1909 Added bad examples to skin() docs. 2019-11-12 22:51:13 -08:00
Revar Desmera
ba4a35229c Added regressions and bugfixes for skin.scad 2019-11-08 16:25:47 -08:00
Revar Desmera
785befb1c1 Added skin.scad 2019-11-03 19:12:50 -08:00