diff --git a/polyhedra.scad b/polyhedra.scad index 03b62bc..54e463e 100644 --- a/polyhedra.scad +++ b/polyhedra.scad @@ -330,6 +330,7 @@ module regular_polyhedron( stellate=stellate, longside=longside, h=h, height=height ); + assert(len(entry)>0, "No polyhedra meet your specification"); scaled_points = entry[0]; translation = entry[1]; face_triangles = entry[2]; @@ -657,7 +658,8 @@ function regular_polyhedron_info( ] ) ) - assert(len(indexlist)>0, "No polyhedra meet your specification") + len(indexlist)==0 ? [] + : let(validindex = is_undef(index) || (index>=0 && index