mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-10 19:44:19 +02:00
Fix for vnf_add_face()
This commit is contained in:
@@ -1722,11 +1722,6 @@ function _vnf_get_vertices(vnf=[[],[]], pts, _i=0, _idxs=[]) =
|
|||||||
// vnf = The VNF structure to add a face to.
|
// vnf = The VNF structure to add a face to.
|
||||||
// pts = The vertex points for the face.
|
// pts = The vertex points for the face.
|
||||||
function vnf_add_face(vnf=[[],[]], pts) =
|
function vnf_add_face(vnf=[[],[]], pts) =
|
||||||
let(base=len(vnf[0])) [
|
|
||||||
concat(vnf[0],pts),
|
|
||||||
concat(vnf[1],[[for (i=idx(pts)) i+base]])
|
|
||||||
];
|
|
||||||
/*
|
|
||||||
let(
|
let(
|
||||||
vvnf = vnf_get_vertex(vnf, pts),
|
vvnf = vnf_get_vertex(vnf, pts),
|
||||||
face = deduplicate(vvnf[0], closed=true),
|
face = deduplicate(vvnf[0], closed=true),
|
||||||
@@ -1735,7 +1730,6 @@ function vnf_add_face(vnf=[[],[]], pts) =
|
|||||||
vnf_vertices(vnf2),
|
vnf_vertices(vnf2),
|
||||||
concat(vnf_faces(vnf2), len(face)>2? [face] : [])
|
concat(vnf_faces(vnf2), len(face)>2? [face] : [])
|
||||||
];
|
];
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
// Function: vnf_add_faces()
|
// Function: vnf_add_faces()
|
||||||
|
Reference in New Issue
Block a user