Commit graph

224 commits

Author SHA1 Message Date
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
Revar Desmera
ac773cea20 Added "tipN" named anchors to Ngons. Added "tipN", "midptN", and "cornerN" named anchors to star(). 2020-05-07 17:11:35 -07:00
Revar Desmera
b03e97cb9b Added an example for maxking by attachment to ogee mask. 2020-05-06 17:32:03 -07:00
Revar Desmera
ef7acd1c10 Added "sideN" named anchors for Ngons. 2020-05-06 17:17:45 -07:00
Revar Desmera
c03570ce3b Enhanced oval() to allow actual oval shapes. 2020-05-06 01:36:06 -07:00
Revar Desmera
be3dd53132 Bugfix for oval() not properly using circum args. 2020-05-05 15:27:25 -07:00
Revar Desmera
ff96db86d2 Removed overrides for square() and circle() builtin modules. 2020-04-25 04:00:16 -07:00
Revar Desmera
1b6ebd3761 Fixed Ngon rounding size distortion. 2020-04-23 04:36:51 -07:00
Revar Desmera
7ebb83a81d Improved quality of in 3D. 2020-04-14 19:16:24 -07:00
Revar Desmera
22e512b287 Fixed assert that broke stroke() for endcap paths. 2020-04-13 19:10:00 -07:00
Revar Desmera
9f630018f1 Standardized polygon path orientation: CW from X+ 2020-04-13 18:52:11 -07:00
Revar Desmera
0346b8a266 Removed leftover p= args from attachable() refactoring. 2020-04-13 16:53:50 -07:00
Revar Desmera
82aaa28471 Added teardrop_corner_mask(), corner_profile() 2020-04-11 01:22:04 -07:00
Revar Desmera
38b4912da3 Added mask2d_teardrop() 2020-04-10 20:32:44 -07:00
Revar Desmera
05827785f5 Fixed turtle() docs truncation issue. 2020-03-17 20:03:36 -07:00
Adrian Mariano
55798da5c5 Added xymove to turtle. 2020-03-14 23:52:16 -04:00
Revar Desmera
579714a9f7 Minor stroke() bugfix for duplicate start or endpoints. 2020-03-11 22:21:26 -07:00
Revar Desmera
5c83313203 Minor stroke() bugfix. 2020-03-09 01:04:46 -07:00
Revar Desmera
d5aac19ef8 Enabled use of stroke() for 3D paths. 2020-03-08 21:22:40 -07:00
Revar Desmera
6ec5013835 Reworked attachable() internals, and provided geometry only function equivalent called reorient(). 2020-03-06 15:32:53 -08:00
Revar Desmera
0571425ce7
Merge pull request #133 from adrianVmariano/master
Added snap pins to joiners.scad
2020-03-04 20:27:21 -08:00
Adrian Mariano
fcbeadc363 renamed replist to repeat
fixed normalization issue in path_to_bezier
2020-03-04 23:22:39 -05:00
Revar Desmera
ee30513644 Bugfix for rot 2020-03-03 19:17:14 -08:00
Revar Desmera
07bfcd6a57 Renamed normalize() to unit() 2020-03-02 19:30:20 -08:00
Revar Desmera
7ea33cc724 Added asserts for regular_ngon(). 2020-03-02 12:57:24 -08:00
Revar Desmera
6651e1be42 Renamed orient_and_anchor() to attachable() and refactored arguments and internals. 2020-02-29 13:16:15 -08:00
Revar Desmera
9736ec48f5 Added edge_profile(), edge_mask(), and various 2D mask shapes. 2020-02-11 20:11:59 -08:00
Revar Desmera
555f1a9ab3 Bugfix for stroke() with scalar width. 2020-01-29 01:31:05 -08:00
Revar Desmera
b074259054 Added variable line widths along path to stroke() 2020-01-28 19:15:23 -08:00
Revar Desmera
9d84c33af6 Fixed 2D attachments issue That rotated shapes vertically. 2020-01-15 14:18:11 -08:00
Revar Desmera
62e8e517fd Added rounding examples for 2D Ngons. 2020-01-14 16:48:20 -08:00
Revar Desmera
ab66cb5788 Added rounding= option to various 2D Ngons. 2020-01-14 16:23:35 -08:00
Revar Desmera
b4bad57588 Reorganized 2D shapes. Added teardrop2d() function. 2020-01-05 21:36:27 -08:00
Adrian Mariano
29b682be96 Added lcm() and gcd() and is_integer() to math.scad. Added a couple
3d examples for supershape() that I snagged from
list-comprehension-demo.  Added repeat_entries to array.scad.  Note
dependence on _sum_preserving_round which is in paths.scad.  Also note
it's possible _force_list (added to math.scad) should be exposed, or
placed elsewhere.
2019-12-06 19:27:49 -05:00
Revar Desmera
80e9ecac05 Fixed some issues with stroke() docs. 2019-12-04 02:20:05 -08:00
Revar Desmera
a947ec2476 Fixed all *gon() 2D shapes to support attachments. 2019-11-03 19:01:14 -08:00
Revar Desmera
9f0d4f9465 Code formatting standardization in shapes2d.scad 2019-10-21 02:32:05 -07:00
Revar Desmera
1e587ee0f3 Reformatted turtle commands docs. 2019-09-04 18:39:39 -07:00
Adrian Mariano
fc99ce985d Changed rounded_sweep() to offset_sweep()
Fixed collinear bug in arc()
Added arcleftto and arcrrightto and arcsteps to turtle()
2019-09-02 18:15:24 -04:00
Revar Desmera
bd19e12096 Rewrote PCO* parts to use arcleft/arcright turtle commands. Removed turtle_arc() 2019-08-31 23:44:24 -07:00
Revar Desmera
207721012f Fixed docs spelling. Standardized formatting. 2019-08-31 23:13:25 -07:00
Adrian Mariano
e438b17911 Added "arcleft" and "arcright" to turtle() 2019-08-31 19:52:47 -04:00
Revar Desmera
bf407307c7 Added turtle_arc(), pco1810_neck(), pco1810_cap() 2019-08-31 00:43:06 -07:00
Revar Desmera
0e187c82f8 Added paths.scad to std.scad since it's used by so many modules. 2019-08-10 15:50:30 -07:00
Adrian Mariano
22dc6474da Added od and or to star(). Documented support for r and d in various polygons. 2019-08-04 09:48:13 -04:00
Revar Desmera
6c48c27baf Added r/d alternate args to or/od for polygon 2D shapes. 2019-08-03 02:18:40 -07:00
Revar Desmera
6ba7bde38b Reworked new endcap support for stroke() 2019-08-03 00:07:54 -07:00
Adrian Mariano
7855cf98c0 Tweaked pentagram example for turtle()
path_cut had a bug when invoked with a single distance
_bezcorner would fail if $fn wasn't set and $fs was too large
added offset_stroke()
2019-08-01 16:36:53 -04:00
Revar Desmera
6f2e83cb68 Reworked stroke() examples. 2019-07-30 13:00:13 -07:00
Revar Desmera
48ee931522 Embiggen endcaps figure all the way\! 2019-07-30 12:52:45 -07:00
Revar Desmera
455e906dbd Enlarge stroke() endcaps figure 2019-07-30 12:40:59 -07:00
Revar Desmera
71189197c8 Allow custom endcaps for stroke() 2019-07-30 12:34:05 -07:00
Revar Desmera
a130b59dd8 Added arrow endcaps and separate endcap1 and endcap2 options to stroke() 2019-07-29 18:19:19 -07:00
Adrian Mariano
c6ebb93751 removed include 2019-07-15 21:41:20 -04:00
Adrian Mariano
a71868431b Added repeat to turtle. Added centroid to geometry.scad. 2019-07-15 20:14:29 -04:00
Revar Desmera
9aa1cd09e6 Widened stroke width for square spiral example. 2019-07-14 12:47:04 -07:00
Revar Desmera
8705a8ff0f Embiggened turtle() images. 2019-07-14 12:45:18 -07:00
Revar Desmera
d0c5ef29b8 Fixed kock snowflake example rendering. 2019-07-14 12:37:55 -07:00
Revar Desmera
874eac943a Made turtle() example images 2D. 2019-07-14 12:33:17 -07:00
Revar Desmera
a89edec667 Fixed docs formating and code indentation. 2019-07-14 12:30:46 -07:00
Adrian Mariano
8a0fc80c90 Added turtle function 2019-07-14 13:13:36 -04:00
Revar Desmera
3eb39d0018 Changed close argument of stroke() to closed. 2019-07-12 13:11:13 -07:00
Revar Desmera
e60648dadd Make stroke() assert that path is 2D. 2019-07-10 13:03:17 -07:00
Revar Desmera
f1a70f62f3 Fixed // handling for arcs with negative arc angles. 2019-06-30 18:09:43 -07:00
Adrian Mariano
fb5580268a Three new supershape examples 2019-06-23 17:21:00 -04:00
Revar Desmera
02da52c097 Fixed supershape example images. 2019-06-18 01:08:24 -07:00
adrianVmariano
5bfdbf3c5c
Add files via upload 2019-06-11 21:56:10 -04:00
Revar Desmera
ac71eb67e8 Removed pie_slice2d(), make N defaultable in 2019-05-29 17:52:42 -07:00
Revar Desmera
3b0a1a3383 Added spin and anchor to various 2D shapes. 2019-05-29 16:27:35 -07:00
Revar Desmera
0836e821f4 Added arc() 2019-05-28 21:23:59 -07:00
Revar Desmera
f378b70151 Added in range step of 1 to avoid errors. 2019-05-26 22:34:46 -07:00
Revar Desmera
4f98535141 Removed remove_undefs() 2019-05-15 21:38:54 -07:00
Revar Desmera
e649991e56 Merged functions&modules docs in shapes2d.scad 2019-05-12 18:10:15 -07:00
Revar Desmera
cdaeb136d0 Examples fixes for shapes2d 2019-05-12 03:46:53 -07:00
Revar Desmera
51403aee33 Added shapes2d.scad 2019-05-12 03:32:56 -07:00