1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-29 11:58:39 +01:00
This commit is contained in:
Justin Lin 2022-04-15 08:12:48 +08:00
parent 35cf05dd42
commit 4c3dca538d
2 changed files with 13 additions and 0 deletions

View File

@ -92,6 +92,7 @@ include <voxel/test_vx_sphere.scad>;
include <voxel/test_vx_polygon.scad>;
include <voxel/test_vx_intersection.scad>;
include <voxel/test_vx_difference.scad>;
include <voxel/test_vx_contour.scad>;
// Matrix
include <matrix/test_m_scaling.scad>;

View File

@ -0,0 +1,12 @@
use <voxel/vx_ascii.scad>;
use <voxel/vx_contour.scad>;
module test_vx_contour() {
echo("==== test_vx_contour ====");
expected = [[1, 0], [2, 0], [3, 0], [4, 0], [5, 0], [6, 0], [7, 0], [7, 1], [7, 2], [7, 3], [7, 4], [7, 5], [7, 6], [7, 7], [6, 7], [5, 7], [4, 7], [4, 6], [4, 5], [3, 5], [2, 5], [1, 5], [1, 4], [0, 4], [0, 3], [0, 2], [0, 1], [1, 1]];
actual = vx_contour(vx_ascii("d"));
assert(expected == actual);
}
test_vx_contour();