From bd407bbfbd133c73fd9223db7831e8ee6652d906 Mon Sep 17 00:00:00 2001 From: Revar Desmera <revarbat@gmail.com> Date: Sun, 22 Mar 2020 01:42:14 -0700 Subject: [PATCH] Bugfix for initial vertex adding to VNF via vnf_add_face() --- version.scad | 2 +- vnf.scad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/version.scad b/version.scad index 8cdf21c..5b6032b 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,213]; +BOSL_VERSION = [2,0,214]; // Section: BOSL Library Version Functions diff --git a/vnf.scad b/vnf.scad index 5cda13b..ac4b314 100644 --- a/vnf.scad +++ b/vnf.scad @@ -82,7 +82,7 @@ function vnf_quantize(vnf,q=pow(2,-12)) = // vnf4 = vnf_get_vertex(vnf3, p=[[1,3,2],[3,2,1]]); // Returns: [[1,2], [[[3,5,8],[3,2,1],[1,3,2]],[]]] function vnf_get_vertex(vnf=EMPTY_VNF, p) = is_path(p)? _vnf_get_vertices(vnf, p) : - assert(is_vnf(vnf)) + assert(is_list(vnf) && len(vnf)==2 && is_list(vnf[0]) && is_list(vnf[1]), "Argument vnf should contain a VNF structure.") assert(is_vector(p)) let( v = search([p], vnf[0])[0]