1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-04-15 11:41:59 +02:00

changed hook names

This commit is contained in:
Justin Lin 2017-05-26 10:26:30 +08:00
parent ea8ca50e2a
commit 22b8d26dea
2 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE") {
square(width, center = true);
// hook for testing
cap(point, "CAP_SQUARE");
test_line2d_cap(point, "CAP_SQUARE");
}
module round_end(point) {
@ -36,7 +36,7 @@ module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE") {
circle(half_width, center = true, $fn = frags);
// hook for testing
cap(point, "CAP_ROUND");
test_line2d_cap(point, "CAP_ROUND");
}
if(p1Style == "CAP_SQUARE") {
@ -60,7 +60,7 @@ module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE") {
test_line2d_line(atan_angle, leng, width, frags);
}
module cap(point, style) {
module test_line2d_cap(point, style) {
}
module test_line2d_line(angle, length, width, frags) {

View File

@ -11,7 +11,7 @@ module test_line2d() {
include <line2d.scad>;
module cap(point, style) {
module test_line2d_cap(point, style) {
assertTrue(
(point == p1 && style == "CAP_SQUARE") ||
(point == p2 && style == "CAP_SQUARE")
@ -33,7 +33,7 @@ module test_line2d() {
include <line2d.scad>;
module cap(point, style) {
module test_line2d_cap(point, style) {
assertTrue(
(point == p1 && style == "CAP_ROUND") ||
(point == p2 && style == "CAP_ROUND")
@ -56,7 +56,7 @@ module test_line2d() {
include <line2d.scad>;
module cap(point, style) {
module test_line2d_cap(point, style) {
assertTrue(
(point == p1 && style == "CAP_BUTT") ||
(point == p2 && style == "CAP_BUTT")