1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00

added test hook

This commit is contained in:
Justin Lin
2017-05-26 19:56:31 +08:00
parent b770833521
commit 51661728c8

View File

@@ -17,12 +17,18 @@ module hull_polyline2d(points, width) {
leng = len(points); leng = len(points);
module hull_line2d(index) { module hull_line2d(index) {
point1 = points[index - 1];
point2 = points[index];
hull() { hull() {
translate(points[index - 1]) translate(points[index - 1])
circle(half_width); circle(half_width);
translate(points[index]) translate(points[index])
circle(half_width); circle(half_width);
} }
// hook for testing
test_line_segment(index, point1, point2, half_width);
} }
module polyline2d_inner(index) { module polyline2d_inner(index) {
@@ -33,4 +39,9 @@ module hull_polyline2d(points, width) {
} }
polyline2d_inner(1); polyline2d_inner(1);
}
// override to test
module test_line_segment(index, point1, point2, radius) {
} }