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:
parent
ea8ca50e2a
commit
22b8d26dea
@ -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) {
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user