1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-18 04:21:16 +02:00

refactored and added test hook

This commit is contained in:
Justin Lin
2017-06-07 08:26:38 +08:00
parent 40630df4f8
commit 9ccf8244ab

View File

@@ -21,8 +21,16 @@ module polyline3d(points, thickness, startingStyle = "CAP_CIRCLE", endingStyle =
] ]
); );
line3d(points[index - 1], points[index], thickness, p1 = points[index - 1];
p1Style = styles[0], p2Style = styles[1]); p2 = points[index];
p1Style = styles[0];
p2Style = styles[1];
line3d(p1, p2, thickness,
p1Style = p1Style, p2Style = p2Style);
// hook for testing
test_line_segment(index, p1, p2, thickness, p1Style, p2Style);
} }
module polyline3d_inner(index) { module polyline3d_inner(index) {
@@ -34,3 +42,8 @@ module polyline3d(points, thickness, startingStyle = "CAP_CIRCLE", endingStyle =
polyline3d_inner(1); polyline3d_inner(1);
} }
// override it to test
module test_line3d_segment(index, point1, point2, thickness, p1Style, p2Style) {
}