Compare commits

...

21 commits

Author SHA1 Message Date
adrianVmariano
a7c5e7e795
Merge c83253c814 into 3f9fb3a5b4 2024-10-14 19:57:02 +00:00
Adrian Mariano
c83253c814 doc tweak 2024-10-14 15:56:35 -04:00
Revar Desmera
3f9fb3a5b4
Merge pull request #1489 from adrianVmariano/master
rounded prism anchor improvements
2024-10-13 02:09:55 -07:00
Revar Desmera
82a13f9e97
Merge pull request #1486 from adrianVmariano/master
rounded_edge_mask enhancements
2024-10-07 01:43:35 -07:00
Revar Desmera
9717497174
Merge pull request #1481 from adrianVmariano/master
doc fixes
2024-09-30 22:44:00 -07:00
Revar Desmera
38f9a9b40c
Merge pull request #1478 from adrianVmariano/master
attachments update
2024-09-29 01:25:07 -07:00
Revar Desmera
d8214cc0e1
Merge pull request #1477 from adrianVmariano/master
rounded_prism fixes & attachment updates
2024-09-26 18:01:06 -07:00
Revar Desmera
456fcd8d8a
Merge pull request #1475 from adrianVmariano/master
Fox default font
2024-09-22 20:09:39 -07:00
Revar Desmera
8a930d5495
Merge pull request #1472 from adrianVmariano/master
offset() default fix & planetary gears docfix
2024-09-19 23:29:30 -07:00
Revar Desmera
eda0cd75b5
Merge pull request #1469 from adrianVmariano/master
regular_prism(), prismoid and wedge anchors
2024-09-07 22:25:56 -07:00
Revar Desmera
53af9121e7
Merge pull request #1464 from adrianVmariano/master
doc fix & screws fix
2024-08-11 22:48:27 -07:00
Revar Desmera
736fad321b
Merge pull request #1459 from adrianVmariano/master 2024-07-27 14:01:30 -07:00
Revar Desmera
cc08eb3323
Merge pull request #1458 from adrianVmariano/master
Fix new examples
2024-07-27 02:21:31 -07:00
Revar Desmera
78ea8e4770
Merge pull request #1457 from adrianVmariano/master
vnf_sheet & bezier_sheet
2024-07-25 23:01:31 -07:00
Revar Desmera
8383d360cc
Merge pull request #1454 from adrianVmariano/master
various fixes
2024-07-19 21:35:00 -07:00
Revar Desmera
9145c0961f
Merge pull request #1450 from BelfrySCAD/revarbat_dev
Remove redundant collinear points from bezpath_curve() output.
2024-07-07 00:34:15 -07:00
Revar Desmera
ebb98b47d2 Remove redundant collinear points from bezpath_curve() output. 2024-07-07 00:11:23 -07:00
Revar Desmera
8ea8ebf341
Merge pull request #1447 from adrianVmariano/master
su/product optimization
2024-06-29 15:41:11 -07:00
Revar Desmera
17e307fdb4
Merge pull request #1446 from adrianVmariano/master
projection doc fix
2024-06-22 20:58:13 -07:00
Revar Desmera
67f0004773
Merge pull request #1445 from adrianVmariano/master
add projection()
2024-06-22 18:10:12 -07:00
Revar Desmera
76d09271c1
Merge pull request #1441 from adrianVmariano/master
spiral sweep bugfix
2024-06-12 22:57:08 -07:00
2 changed files with 12 additions and 9 deletions

View file

@ -466,12 +466,15 @@ function bezpath_curve(bezpath, splinesteps=16, N=3, endpoint=true) =
assert(len(bezpath)%N == 1, str("A degree ",N," bezier path should have a multiple of ",N," points in it, plus 1."))
let(
segs = (len(bezpath)-1) / N,
step = 1 / splinesteps
) [
step = 1 / splinesteps,
path = [
for (seg = [0:1:segs-1])
each bezier_points(select(bezpath, seg*N, (seg+1)*N), [0:step:1-step/2]),
if (endpoint) last(bezpath)
];
],
is_closed = approx(path[0], last(path)),
out = path_merge_collinear(path, closed=is_closed)
) out;
// Function: bezpath_closest_point()

View file

@ -2095,9 +2095,9 @@ function _rp_compute_patches(top, bot, rtop, rsides, ktop, ksides, concave) =
// top = 2d or 3d path describing top polygon (must be the same dimension as bottom)
// ---
// height/length/h/l = height of the shape when you give 2d bottom
// joint_top = rounding length for top (number or 2-vector). Default: 0
// joint_bot = rounding length for bottom (number or 2-vector). Default: 0
// joint_sides = rounding length for side edges, a number/2-vector or list of them. Default: 0
// joint_top = joint distance or [joint,k] pair for top roundover (number or 2-vector). Default: 0
// joint_bot = joint distance or [joint,k] for bottom roundover (number or 2-vector). Default: 0
// joint_sides = joint distance or [joint,k] for rounding of side edges, a number/2-vector or list of them. Default: 0
// k = continuous curvature rounding parameter for all edges. Default: 0.5
// k_top = continuous curvature rounding parameter for top
// k_bot = continuous curvature rounding parameter for bottom