test for crash on 'undef' args to polyhedron(), issue #703

master
Don Bright 2014-04-02 17:42:49 -05:00
parent 5bb2ab0c76
commit 49d545285c
1 changed files with 3 additions and 0 deletions

View File

@ -43,3 +43,6 @@ translate([0,2,0]) difference() {
translate([3,0,2]) cube([8,3,3], center=true);
}
// dont crash (issue #703)
polyhedron(points = undef, triangles = [[1, 2, 3]]);
polyhedron(points = [[0,0,0],[1,1,1]], triangles = undef);