mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 00:09:41 +00:00
remove noncoplanar polygon fron vnf_from_polygon test
This commit is contained in:
parent
825d0641ac
commit
bd5fd65e3d
1 changed files with 2 additions and 2 deletions
|
@ -36,9 +36,9 @@ test_vnf_faces();
|
||||||
|
|
||||||
module test_vnf_from_polygons() {
|
module test_vnf_from_polygons() {
|
||||||
verts = [[-1,-1,-1],[1,-1,-1],[0,1,-1],[0,0,1]];
|
verts = [[-1,-1,-1],[1,-1,-1],[0,1,-1],[0,0,1]];
|
||||||
faces = [[0,1,2],[0,1,3,2],[2,3,0]];
|
faces = [[0,1,2],[0,3,1],[2,3,0],[0,1,0]]; // Last face has zero area
|
||||||
assert(vnf_merge_points(
|
assert(vnf_merge_points(
|
||||||
vnf_from_polygons([for (face=faces) select(verts,face)])) == [verts,faces]);
|
vnf_from_polygons([for (face=faces) select(verts,face)])) == [verts,select(faces,0,-2)]);
|
||||||
}
|
}
|
||||||
test_vnf_from_polygons();
|
test_vnf_from_polygons();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue