mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 04:20:27 +02:00
add doc
This commit is contained in:
28
docs/lib2x-vx_intersection.md
Normal file
28
docs/lib2x-vx_intersection.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# vx_intersection
|
||||
|
||||
Creates an intersection of two lists of points.
|
||||
|
||||
**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);
|
||||
}
|
||||
|
||||

|
Reference in New Issue
Block a user