2020-06-02 17:06:14 +08:00
|
|
|
# vx_intersection
|
|
|
|
|
2020-06-05 09:19:43 +08:00
|
|
|
It' slow, in case you want to create an intersection of two lists of points directly.
|
2020-06-02 17:06:14 +08:00
|
|
|
|
|
|
|
**Since:** 2.4
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `points1` : A list of points.
|
|
|
|
- `points2` : A list of points.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
use <voxel/vx_cylinder.scad>;
|
|
|
|
use <voxel/vx_sphere.scad>;
|
|
|
|
use <voxel/vx_intersection.scad>;
|
|
|
|
|
|
|
|
voxels = vx_intersection(
|
|
|
|
vx_cylinder([1, 8], 8, filled = true),
|
|
|
|
vx_sphere(8, filled = true)
|
|
|
|
);
|
|
|
|
|
|
|
|
for(pt = voxels) {
|
|
|
|
translate(pt)
|
|
|
|
cube(1, center = true);
|
|
|
|
}
|
|
|
|
|
2021-02-24 21:09:54 +08:00
|
|
|
![vx_intersection](images/lib3x-vx_intersection-1.JPG)
|