mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-30 08:19:36 +00:00
Bugfix for initial vertex adding to VNF via vnf_add_face()
This commit is contained in:
parent
c78eade2f2
commit
bd407bbfbd
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,213];
|
||||
BOSL_VERSION = [2,0,214];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
2
vnf.scad
2
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]
|
||||
|
|
Loading…
Reference in a new issue