Commit graph

224 commits

Author SHA1 Message Date
Adrian Mariano
7d6a2b593f Force N parameters to n in most places 2022-03-13 21:40:55 -04:00
Garth Minette
9e544a8489 Added atype= to rect() 2022-03-07 18:59:05 -08:00
Garth Minette
6bea067678 Corrected text() and text3d() docs. 2022-01-18 22:16:23 -08:00
Garth Minette
7ca44e81c4 atext() to text3d(). Overrode text() for 2D attachability. 2022-01-18 21:29:23 -08:00
Garth Minette
b436dba2d3 Regressions fixes for changes to teardrop2d() 2022-01-17 00:28:22 -08:00
Garth Minette
e09a6cd6dd Added negative roundings/chamfers to rect() and trapezoid(). Added teardrop= to cuboid() 2022-01-16 23:30:13 -08:00
Adrian Mariano
85bdeb4d89 colors and 2d rounding flee mutators.scad 2022-01-14 20:31:02 -05:00
Garth Minette
b5d7edbb5d Animated egg() examples. 2022-01-09 00:53:54 -08:00
Revar Desmera
29eaca542b
Merge pull request #750 from revarbat/revarbat_dev
Minor tweaks to Shapes2d tutorital.
2022-01-08 01:01:05 -08:00
Garth Minette
8d9d1f46a6 Minor tweaks to Shapes2d tutorital. 2022-01-07 19:31:58 -08:00
Adrian Mariano
1547aa8f71 Add egg() function/module 2022-01-07 12:37:47 -05:00
Adrian Mariano
15b68ffe89 add references for circle functions 2022-01-05 16:20:42 -05:00
Adrian Mariano
f1b9d04a3d strip down apply() so projections are banned, and 2d acting on 3d is
banned.  clarify docs
2021-12-28 17:05:37 -05:00
Revar Desmera
f9c5dc2cb9 Fixes for rect(center=) 2021-12-13 16:31:14 -08:00
Revar Desmera
aa109de9d7 Merge branch 'master' of github.com:revarbat/BOSL2 into revarbat_dev 2021-12-13 15:51:06 -08:00
Revar Desmera
59bf523908 Lots of docs tweaks for openscad-docsgen v2 2021-12-13 15:48:30 -08:00
Adrian Mariano
3e292c21cc remove center arg from shapes2d.scad 2021-11-20 23:33:04 -05:00
Adrian Mariano
dd3542c748 Fix references to changed subsections 2021-11-19 22:33:16 -05:00
Adrian Mariano
1ec9faec39 remove enumerate, zip, ellipse uniform sampling with realign 2021-11-18 19:02:50 -05:00
Adrian Mariano
cd664f830c attachment bugfixes 2021-11-16 22:13:00 -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
0c3c983051 oval() -> ellipse() 2021-11-13 19:45:58 -05:00
Adrian Mariano
bc431016fc remove ALLNEG and fix rect errors due to bad get_anchor default doc 2021-11-11 22:55:03 -05:00
Adrian Mariano
5b62f2859a catch case where endcaps are too long for path in stroke()
make rect() default to centered
2021-11-11 22:43:19 -05:00
Adrian Mariano
6d1c754ed8 organize masks into massk3d.scad and masks2d.scad 2021-11-11 19:34:16 -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
a81b6c6931 misc tweaks 2021-11-09 22:27:55 -05:00
Adrian Mariano
5153cb20da doc tweak 2021-10-30 18:07:43 -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
Garth Minette
622a13952b Anchor calculation fixes. Added wedge() and make right_triangle() be 2D. 2021-10-26 00:42:27 -07:00
Adrian Mariano
2d205a2568 subarray -> columns 2021-10-15 22:39:10 -04:00
Adrian Mariano
044b635bed make reference to builtins.scad properly relative 2021-10-02 09:35:06 -04:00
Revar Desmera
b0b665c2b8
Merge pull request #665 from adrianVmariano/master
remove debug.scad, hide affine.scad
2021-10-01 18:07:58 -07: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
Garth Minette
4b92d1eb18 2D fix for circle attachability. 2021-09-30 02:04:31 -07:00
Garth Minette
70be304f01 Make use of builtin cube(), cylinder(), sphere(), square(), circle(). 2021-09-30 01:22:43 -07:00
Garth Minette
47b803276b Fixed See Also refs for removed jitter function. 2021-09-22 22:41:00 -07:00
Adrian Mariano
2f895cb8d1 hiding some infrastructure, added is_path_simple() 2021-09-22 14:59:18 -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
fd0bcc0903 rename anchorpt to named_anchor 2021-09-16 18:32:12 -04:00
Adrian Mariano
856f54df32 removed old triangulation.scad
other file name changes
2021-09-15 23:12:51 -04:00
Adrian Mariano
d78eb5213e Add "is" to geometry.scad predicates 2021-09-15 19:01:34 -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
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
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
bad60db600 Doc error in common.scad for no_module
Added no_module and no_function to turtle and stroke respectively
2021-09-06 19:46:18 -04:00
Adrian Mariano
c8a1e14f05 Expand top text, and reorder some modules for docs 2021-09-06 19:07:18 -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
ca30f338eb arc should return two points (not 3) if N=2 2021-08-30 17:23:12 -04:00
Garth Minette
5a355434ce Tweaks for docs usage lines. 2021-06-26 20:59:33 -07:00
Garth Minette
48c5139099 Fix tab indents. 2021-06-22 17:20:08 -07:00
Garth Minette
a748c77077 vmul() to v_mul(), etc. 2021-06-14 20:28:49 -07:00
Garth Minette
3eb506e78a Rename quaternion functions to not have uppercase names. 2021-06-12 17:17:05 -07:00
Garth Minette
33fda63cac Fixed mask2d_* shapes regressions. 2021-05-17 23:09:18 -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
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
Garth Minette
17efb079d9 Fixes for various example bugs. 2021-03-16 14:46:11 -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
Garth Minette
4c3dcf5af1 path_cut_seg() to path_cut() fixes. 2021-03-08 23:31:39 -08:00
Garth Minette
3682f7b27c Added dashed_stroke(). path_cut() -> path_cut_points(). 2021-03-06 02:26:39 -08:00
Revar Desmera
c9e81cfadc
Merge pull request #443 from revarbat/revarbat_dev
Docs tweaks.
2021-02-26 13:12:25 -08:00
Garth Minette
1ff9bebcf2 Tweak stroke endcaps figure. 2021-02-25 03:24:51 -08:00
Revar Desmera
26e43da692
Merge pull request #442 from revarbat/revarbat_dev
Reworked docs for shapes2d.scad and primitives.scad.
2021-02-25 02:19:09 -08:00
Garth Minette
1a7f7ef953 Reworked docs for primitives.scad and shapes2d.scad 2021-02-25 02:16:55 -08:00
Adrian Mariano
1627c3409d Fix path_normals to handle 2d and better error message.
Improve error message for bogus endcaps to stroke() and
running unit() on a zero vector
2021-02-24 16:56:21 -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
a1755d0a37 Docs usage correction for reuleaux_polygon() 2021-01-12 00:09:39 -08:00
Garth Minette
34ce1c203f Fixed named anchors for reuleaux_polygon() 2021-01-12 00:01:03 -08:00
Garth Minette
c790969ceb Added reuleaux_polygon() 2021-01-11 01:57:51 -08:00
Adrian Mariano
9f8e9b8ba2 handle $fn case for arc 2021-01-05 23:48:19 -05:00
Adrian Mariano
b1a8056c51 Check N=integer 2021-01-05 23:39:07 -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
Garth Minette
d1fe384f95 Bugfix for malformed teardrop2d() 2020-12-31 16:33:09 -08:00
Garth Minette
0299270f6a Added rounding and chamfering to trapezoid() 2020-12-30 00:34:25 -08:00
Garth Minette
b054edb5fb Fix for anchors in trapezoid() when using shift=. 2020-12-27 21:55:36 -08:00
Adrian Mariano
b82f1b8e5d tweaked vac example in turtle3d
added delete_last() to arrays.scad
added endpoint= option to arc
added tests for last two things
2020-12-12 21:15:33 -05:00
Garth Minette
0399cd085c Guard various linear_extrude()s for height=0 2020-11-29 20:23:03 -08:00
Garth Minette
e4f2497863 Changes all references to polyline to path. 2020-11-16 17:50:08 -08:00
Garth Minette
2bf6c34564 Fixed spheroid() orig and aligned styles. 2020-10-15 19:14:14 -07:00
Garth Minette
8451f23b7c Fix trapezoid example. 2020-10-07 23:03:09 -07:00
Garth Minette
29ed649740 Added angle= and shift= to trapezoid() 2020-10-07 22:50:05 -07:00
Revar Desmera
33d713522b
Merge pull request #292 from revarbat/revarbat_dev
Bugfixes for looping helpers.
2020-10-07 16:57:12 -07:00
Garth Minette
a36eec5297 Added align_tip/align_side to regular_ngon()/star(). 2020-10-07 16:53:52 -07: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
16ee49e8b2 Fixed a bunch of undef math warnings with dev snapshot OpenSCAD builds. 2020-10-03 19:50:29 -07:00
Garth Minette
e56f953c1c Fixed calls to vmul() with heteerogenous vector sizes. 2020-08-02 23:23:50 -07:00
Garth Minette
b5d465cf1e docs_gen.py now shows more docs errors. 2020-07-27 15:15:34 -07:00
Garth Minette
dde616dad5 unit() now asserts error for zero-length vector unless dflt= arg is given. 2020-07-10 00:03:55 -07:00
Garth Minette
7045f436a1 Fixed inverted endcap1 in stroke() 2020-07-01 00:59:32 -07:00
Revar Desmera
ef13137657 Fix for issue #180. 3D stroke works again. 2020-06-14 18:32:59 -07:00
Revar Desmera
620a536dbc Fix stroke() for 1 point paths. 2020-06-10 00:03:48 -07:00
Revar Desmera
53c1e25395 Standardize indention on spaces, not tabs. 2020-05-29 19:04:34 -07:00
Adrian Mariano
7c97593a54 Modified arc so cw and ccw can be used with 180 deg arcs. Beefed up
parameter error checking.  Deleted echos from star() and arc().
2020-05-29 20:09:17 -04:00
Adrian Mariano
9fe8788357 Added long, cw, and ccw arguments to arc for selecting which arc is
drawn when you give 2 points and a centerpoint.
2020-05-25 23:43:52 -04:00