mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
added test hook
This commit is contained in:
@@ -86,6 +86,9 @@ module polysections(sections, triangles = "SOLID") {
|
|||||||
v_pts,
|
v_pts,
|
||||||
f_idxes
|
f_idxes
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// hook for testing
|
||||||
|
test_polysections_solid(v_pts, f_idxes);
|
||||||
} else {
|
} else {
|
||||||
first_idxes = [for(i = [0:leng_pts_sect - 1]) leng_pts_sect - 1 - i];
|
first_idxes = [for(i = [0:leng_pts_sect - 1]) leng_pts_sect - 1 - i];
|
||||||
last_idxes = [
|
last_idxes = [
|
||||||
@@ -94,10 +97,14 @@ module polysections(sections, triangles = "SOLID") {
|
|||||||
];
|
];
|
||||||
|
|
||||||
f_idxes = concat([first_idxes], side_indexes(sects), [last_idxes]);
|
f_idxes = concat([first_idxes], side_indexes(sects), [last_idxes]);
|
||||||
|
|
||||||
polyhedron(
|
polyhedron(
|
||||||
v_pts,
|
v_pts,
|
||||||
f_idxes
|
f_idxes
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// hook for testing
|
||||||
|
test_polysections_solid(v_pts, f_idxes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,4 +233,10 @@ module polysections(sections, triangles = "SOLID") {
|
|||||||
else {
|
else {
|
||||||
triangles_defined_sections();
|
triangles_defined_sections();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// override it to test
|
||||||
|
|
||||||
|
module test_polysections_solid(points, faces) {
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user