1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-31 10:11:53 +02:00

added test hook

This commit is contained in:
Justin Lin
2017-06-15 10:37:42 +08:00
parent 5111b1f0d4
commit 75712956c4

View File

@@ -179,16 +179,23 @@ module polysections(sections, triangles = "SOLID") {
polyhedron( polyhedron(
v_pts, v_pts,
f_idxes f_idxes
); );
// hook for testing
test_polysections_solid(v_pts, f_idxes);
} else { } else {
first_idxes = first_idxes(); first_idxes = first_idxes();
last_idxes = last_idxes(half_leng_v_pts - half_leng_sect); last_idxes = last_idxes(half_leng_v_pts - half_leng_sect);
f_idxes = concat(first_idxes, outer_idxes, inner_idxes, last_idxes); f_idxes = concat(first_idxes, outer_idxes, inner_idxes, last_idxes);
polyhedron( polyhedron(
v_pts, v_pts,
f_idxes f_idxes
); );
// hook for testing
test_polysections_solid(v_pts, f_idxes);
} }
} }