Fixed bezier patch functions to all accept mixes of triangular and rectangular patches in the patches list, instead of having separate tris arguments.

This commit is contained in:
Revar Desmera
2019-05-28 14:50:20 -07:00
parent 3180704da4
commit 01a52cdac4
2 changed files with 61 additions and 70 deletions

View File

@@ -104,9 +104,9 @@ module CR_cube(size=[100,100,100], r=10, splinesteps=8, cheat=false, debug=false
hull() bezier_polyhedron(patches=corners, splinesteps=splinesteps);
} else {
if (debug) {
trace_bezier_patches(patches=concat(edges, faces), tris=corners, showcps=true, splinesteps=splinesteps);
trace_bezier_patches(patches=concat(edges, faces, corners), showcps=true, splinesteps=splinesteps);
} else {
bezier_polyhedron(patches=concat(edges, faces), tris=corners, splinesteps=splinesteps);
bezier_polyhedron(patches=concat(edges, faces, corners), splinesteps=splinesteps);
}
}
}