mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 01:34:12 +02:00
add doc
This commit is contained in:
@@ -228,7 +228,7 @@ See [examples](examples).
|
||||
- [voxel/vx_gray](https://openhome.cc/eGossip/OpenSCAD/lib2x-vx_gray.html)
|
||||
- [voxel/vx_union](https://openhome.cc/eGossip/OpenSCAD/lib2x-vx_union.html)
|
||||
- [voxel/vx_intersection](https://openhome.cc/eGossip/OpenSCAD/lib2x-vx_intersection.html)
|
||||
- voxel/vx_difference
|
||||
- [voxel/vx_difference](https://openhome.cc/eGossip/OpenSCAD/lib2x-vx_difference.html)
|
||||
|
||||
----
|
||||
|
||||
|
BIN
docs/images/lib2x-vx_difference-1.JPG
Normal file
BIN
docs/images/lib2x-vx_difference-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
28
docs/lib2x-vx_difference.md
Normal file
28
docs/lib2x-vx_difference.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# vx_difference
|
||||
|
||||
It' slow, in case you want to create a difference of two lists of points directly.
|
||||
|
||||
**Since:** 2.4
|
||||
|
||||
## Parameters
|
||||
|
||||
- `points1` : A list of points.
|
||||
- `points2` : A list of points.
|
||||
|
||||
## Examples
|
||||
|
||||
use <voxel/vx_difference.scad>;
|
||||
use <voxel/vx_cylinder.scad>;
|
||||
use <voxel/vx_sphere.scad>;
|
||||
|
||||
voxels = vx_difference(
|
||||
vx_cylinder(6, 3, filled = true),
|
||||
vx_sphere(3, filled = true)
|
||||
);
|
||||
|
||||
for(pt = voxels) {
|
||||
translate(pt)
|
||||
cube(1, center = true);
|
||||
}
|
||||
|
||||

|
@@ -1,6 +1,6 @@
|
||||
# vx_intersection
|
||||
|
||||
Creates an intersection of two lists of points.
|
||||
It' slow, in case you want to create an intersection of two lists of points directly.
|
||||
|
||||
**Since:** 2.4
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# vx_union
|
||||
|
||||
Creates a union of two lists of points.
|
||||
It' slow, in case you want to create a union of two lists of points directly.
|
||||
|
||||
**Since:** 2.4
|
||||
|
||||
|
@@ -1,3 +1,13 @@
|
||||
/**
|
||||
* vx_difference.scad
|
||||
*
|
||||
* @copyright Justin Lin, 2020
|
||||
* @license https://opensource.org/licenses/lgpl-3.0.html
|
||||
*
|
||||
* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-vx_difference.html
|
||||
*
|
||||
**/
|
||||
|
||||
use <../util/sort.scad>;
|
||||
use <../util/has.scad>;
|
||||
|
||||
|
Reference in New Issue
Block a user