From 34e16dc0ca22aa4fd8cdab047c4e216fa200aa79 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Tue, 7 Jul 2020 21:21:05 -0700 Subject: [PATCH] Fixed skin regression. --- tests/test_skin.scad | 4 ++-- version.scad | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_skin.scad b/tests/test_skin.scad index 8775caf..347ccd2 100644 --- a/tests/test_skin.scad +++ b/tests/test_skin.scad @@ -8,9 +8,9 @@ module test_skin() { [[-100,-100,100], [-100,100,100], [100,100,100], [100,-100,100]], ]; vnf1 = skin(profiles, slices=0, caps=false, method="distance"); - assert(vnf1 == [[[-100, -100, 0], [0, 100, 0], [0, 100, 0], [100, -100, 0], [-100, -100, 100], [-100, 100, 100], [100, 100, 100], [100, -100, 100]], [[0, 1, 4], [4, 1, 5], [1, 2, 5], [5, 2, 6], [2, 3, 6], [6, 3, 7], [3, 0, 7], [7, 0, 4]]]); + assert_equal(vnf1, [[[-100,-100,0],[0,100,0],[0,100,0],[100,-100,0],[-100,-100,100],[-100,100,100],[100,100,100],[100,-100,100]],[[0,5,4],[0,1,5],[1,6,5],[1,2,6],[2,3,6],[3,7,6],[3,4,7],[3,0,4]]]); vnf2 = skin(profiles, slices=0, caps=true, method="distance"); - assert(vnf2 == [[[-100, -100, 0], [0, 100, 0], [0, 100, 0], [100, -100, 0], [-100, -100, 100], [-100, 100, 100], [100, 100, 100], [100, -100, 100]], [[0, 1, 4], [4, 1, 5], [1, 2, 5], [5, 2, 6], [2, 3, 6], [6, 3, 7], [3, 0, 7], [7, 0, 4], [3, 2, 1, 0], [4, 5, 6, 7]]]); + assert_equal(vnf2, [[[-100,-100,0],[0,100,0],[0,100,0],[100,-100,0],[-100,-100,100],[-100,100,100],[100,100,100],[100,-100,100]],[[0,5,4],[0,1,5],[1,6,5],[1,2,6],[2,3,6],[3,7,6],[3,4,7],[3,0,4],[3,2,1,0],[4,5,6,7]]]); vnf_polyhedron(vnf2); } test_skin(); diff --git a/version.scad b/version.scad index 708eb59..4402f4c 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,388]; +BOSL_VERSION = [2,0,389]; // Section: BOSL Library Version Functions