added no_children checks, and attachable to vnf_polyhedron

This commit is contained in:
Adrian Mariano
2020-08-27 19:25:41 -04:00
parent a8522854e4
commit c1782f1113
5 changed files with 18 additions and 4 deletions

View File

@@ -341,9 +341,16 @@ function vnf_vertex_array(
// Arguments:
// vnf = A VNF structure, or list of VNF structures.
// convexity = Max number of times a line could intersect a wall of the shape.
module vnf_polyhedron(vnf, convexity=2) {
module vnf_polyhedron(vnf,
convexity=10,anchor="origin",cp,
spin=0, orient=UP, extent=false
)
{
vnf = is_vnf_list(vnf)? vnf_merge(vnf) : vnf;
polyhedron(vnf[0], vnf[1], convexity=convexity);
attachable(anchor=anchor, spin=spin, orient=orient, vnf=vnf, extent=extent, cp=is_def(cp) ? cp : vnf_centroid(vnf)){
polyhedron(vnf[0], vnf[1], convexity=convexity);
children();
}
}