Commit graph

1086 commits

Author SHA1 Message Date
Adrian Mariano
7aab27266f Added polynomial root finding and complex math to math.scad. Changed
path_to_bezier to new algorithm (which uses polynomial roots).  And
updated path_smooth to use the new code.

Also removed extra (?) include<skin.scad> and
include<strings.scad> from rounding.scad and
removed the common $fn=36 that was forced on all the examples.  (May
break something...we'll look at the examples and see.)  I added $fn=36
to some examples.
2020-06-18 17:50:25 -04:00
Revar Desmera
5b39cefe7b Fixed skin() regression. 2020-06-15 01:29:23 -07:00
Revar Desmera
e3b64888a8 Added regressions for strings.scad. 2020-06-15 01:25:35 -07:00
Revar Desmera
6ec3ce1556 Bugfix for suffix() when len is longer than the string length. 2020-06-15 01:24:57 -07:00
Revar Desmera
e2c0d6dc98 Bugfix for fmt_int() found by creating regressions. 2020-06-14 23:53:10 -07:00
Revar Desmera
761421a148 Made func_coverace.py more robust. 2020-06-14 20:54:16 -07:00
Revar Desmera
3b07cf210b Merge branch 'master' of github.com:revarbat/BOSL2 2020-06-14 18:33:10 -07:00
Revar Desmera
ef13137657 Fix for issue #180. 3D stroke works again. 2020-06-14 18:32:59 -07:00
Revar Desmera
cbd22d5617
Merge pull request #179 from adrianVmariano/master
speed improvements
2020-06-14 12:47:54 -07:00
Adrian Mariano
408833d4ef speed improvement for vnf_centroid 2020-06-14 09:52:27 -04:00
Revar Desmera
e9468f92e1
Merge pull request #178 from adrianVmariano/master
sum speed improvement
2020-06-13 20:20:53 -07:00
Adrian Mariano
a5753d7953 Added non-uniform sampling to deriv and uniform option to
path_tangents, and path_segment_lengths.
2020-06-13 22:35:22 -04:00
Adrian Mariano
57034ac955 further vnf_volume speed improvement 2020-06-13 21:56:15 -04:00
Adrian Mariano
224555a9ec Speed improvement for sum() in vector and list of vectors case 2020-06-13 20:39:45 -04:00
Revar Desmera
1da733fd32
Merge pull request #177 from adrianVmariano/master
Update vnf_volume and vnf_centroid to avoid vnf_triangulate.  Huge speed gain.
2020-06-13 15:05:30 -07:00
Adrian Mariano
39de8491a3 Update vnf_volume and vnf_centroid to avoid vnf_triangulate. Huge
speed gain.
2020-06-13 10:15:57 -04:00
Revar Desmera
314c40bd65 Fixed indentation in screws.scad 2020-06-11 21:40:52 -07:00
Revar Desmera
620a536dbc Fix stroke() for 1 point paths. 2020-06-10 00:03:48 -07:00
Revar Desmera
527fea1cf3
Merge pull request #175 from adrianVmariano/master
Fix apply() to handle degenerate input of empty list.
2020-05-31 19:35:19 -07:00
Adrian Mariano
2ac6093a73 Fix apply() to handle degenerate input of empty list. 2020-05-31 21:49:27 -04:00
Revar Desmera
53c1e25395 Standardize indention on spaces, not tabs. 2020-05-29 19:04:34 -07:00
Revar Desmera
5fe35de963
Merge pull request #173 from adrianVmariano/master
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 18:15:54 -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
Revar Desmera
32ca3861ec
Merge pull request #172 from matthewfallshaw/patch-1
pie_slice can't accept `d` parameter
2020-05-27 20:21:12 -07:00
Matthew Fallshaw
33c44476fb
pie_slice can't accept d parameter
Since `r=10` is supplied as a default parameter in the module argument list, a call supplying a `d` parameter (eg. `pie_slice(d=10,h=10,ang=90);`) will error on the call to `get_radius` on line 1428 with `ERROR: Assertion 'is_undef(d)' failed: "Conflicting or redundant radius/diameter arguments given."`.
Since the calls to `get_radius` on lines 1428 and 1429 both supply `dflt=10`, line 1422 can just change to supplying `r=undef`.
2020-05-27 20:41:39 +10:00
Revar Desmera
a55c8bf0c7
Merge pull request #171 from adrianVmariano/master
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 21:50:14 -07:00
Adrian Mariano
c25d6eb938 Merge remote-tracking branch 'upstream/master' 2020-05-25 23:45:37 -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
3388cff335 More tweaks to screw() example 7. 2020-05-25 19:07:51 -07:00
Revar Desmera
a53e1f3915 Made screw() example 7 clearer. 2020-05-25 17:31:29 -07:00
Revar Desmera
5c485018f3 GitHub's markdown processor has bugs. 2020-05-25 17:14:00 -07:00
Revar Desmera
0fd909d457 Github Wiki does not like angle brackets. 2020-05-25 16:52:40 -07:00
Revar Desmera
88699c12af More screws.scad docs formatting. 2020-05-25 16:41:41 -07:00
Revar Desmera
02789c91d9 Fix lone period bug in docs parser. 2020-05-25 15:34:15 -07:00
Revar Desmera
6168c8bb6b Fix table formatting in screws.scad 2020-05-25 15:13:31 -07:00
Revar Desmera
fe2d59a875 Getting screws.scad in docs. 2020-05-24 22:31:36 -07:00
Revar Desmera
f3127d96a2 Formatting tweaks. 2020-05-24 01:03:37 -07:00
Revar Desmera
9c2cf53b2d Renamed find_circle_tangents() to circle_point_tangents() 2020-05-23 19:22:44 -07:00
Revar Desmera
00ee79aacf Merge branch 'master' of github.com:revarbat/BOSL2 2020-05-23 19:17:40 -07:00
Revar Desmera
719a80c5d0 Tweak docs gen to allow a lone period on a line to break a paragraph. 2020-05-23 19:17:32 -07:00
Revar Desmera
66cb322bb5
Merge pull request #170 from adrianVmariano/master
added circle_circle_tangents
2020-05-23 18:03:37 -07:00
Revar Desmera
86e4e3d892 Fixed stale ref to rounded_prismoid() 2020-05-23 17:57:48 -07:00
Adrian Mariano
4eda2c701e added circle_circle_tangents 2020-05-23 17:25:46 -04:00
Revar Desmera
4fc24ef939 Fix some rounding docs formatting and examples. 2020-05-22 18:18:37 -07:00
Revar Desmera
f3c69eb673 Styles orig and aligned were swapped for sphere() module. 2020-05-22 00:55:08 -07:00
Revar Desmera
c2b3bb7792 Fixes for rect_tube() examples. 2020-05-22 00:40:23 -07:00
Revar Desmera
587812b001 Fixed buggy prismoid() examples. 2020-05-22 00:27:52 -07:00
Revar Desmera
f812254ad7 Merged rounded_prismoid() into prismoid(). 2020-05-22 00:14:41 -07:00
Revar Desmera
212e27bfbf Merge branch 'master' of github.com:revarbat/BOSL2 2020-05-22 00:00:27 -07:00
Revar Desmera
4f622a16b8 Corrected incorrect default in attachable() docs. 2020-05-22 00:00:15 -07:00