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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user