2021-10-13 16:09:12 +08:00
|
|
|
# polyline_join
|
|
|
|
|
|
|
|
Place a join on each point. Hull each pair of joins and union all convex hulls.
|
|
|
|
|
2021-11-22 09:46:34 +08:00
|
|
|
**Since:** 3.2
|
|
|
|
|
2021-10-13 16:09:12 +08:00
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `points` : a list of points.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-06-06 13:11:46 +08:00
|
|
|
use <polyline_join.scad>
|
2021-10-13 16:09:12 +08:00
|
|
|
|
|
|
|
polyline_join([[0, 0], [10, 0], [10, 10], [0, 10]])
|
|
|
|
square(1);
|
|
|
|
|
|
|
|
polyline_join([[15, 0], [25, 0], [25, 10], [15, 10]]) {
|
|
|
|
square(1);
|
|
|
|
circle(1);
|
|
|
|
square(1);
|
|
|
|
circle(2);
|
|
|
|
}
|
|
|
|
|
|
|
|
![polyline_join](images/lib3x-polyline_join-1.JPG)
|
|
|
|
|
2022-06-06 13:11:46 +08:00
|
|
|
use <polyline_join.scad>
|
2021-10-13 16:09:12 +08:00
|
|
|
|
|
|
|
polyline_join([[0, 0, 0], [10, 0, 0], [10, 0, 10], [10, 10, 10]])
|
|
|
|
cube(1);
|
|
|
|
|
|
|
|
polyline_join([[15, 0, 0], [25, 0, 0], [25, 0, 10], [25, 10, 10]]) {
|
|
|
|
cube(1);
|
|
|
|
sphere(1);
|
|
|
|
cube(1);
|
|
|
|
sphere(2);
|
|
|
|
}
|
|
|
|
|
|
|
|
![polyline_join](images/lib3x-polyline_join-2.JPG)
|
|
|
|
|
|
|
|
|
|
|
|
|