mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 06:47:46 +02:00
changed hook names
This commit is contained in:
@@ -27,7 +27,7 @@ module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE") {
|
|||||||
square(width, center = true);
|
square(width, center = true);
|
||||||
|
|
||||||
// hook for testing
|
// hook for testing
|
||||||
cap(point, "CAP_SQUARE");
|
test_line2d_cap(point, "CAP_SQUARE");
|
||||||
}
|
}
|
||||||
|
|
||||||
module round_end(point) {
|
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);
|
circle(half_width, center = true, $fn = frags);
|
||||||
|
|
||||||
// hook for testing
|
// hook for testing
|
||||||
cap(point, "CAP_ROUND");
|
test_line2d_cap(point, "CAP_ROUND");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(p1Style == "CAP_SQUARE") {
|
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);
|
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) {
|
module test_line2d_line(angle, length, width, frags) {
|
||||||
|
@@ -11,7 +11,7 @@ module test_line2d() {
|
|||||||
|
|
||||||
include <line2d.scad>;
|
include <line2d.scad>;
|
||||||
|
|
||||||
module cap(point, style) {
|
module test_line2d_cap(point, style) {
|
||||||
assertTrue(
|
assertTrue(
|
||||||
(point == p1 && style == "CAP_SQUARE") ||
|
(point == p1 && style == "CAP_SQUARE") ||
|
||||||
(point == p2 && style == "CAP_SQUARE")
|
(point == p2 && style == "CAP_SQUARE")
|
||||||
@@ -33,7 +33,7 @@ module test_line2d() {
|
|||||||
|
|
||||||
include <line2d.scad>;
|
include <line2d.scad>;
|
||||||
|
|
||||||
module cap(point, style) {
|
module test_line2d_cap(point, style) {
|
||||||
assertTrue(
|
assertTrue(
|
||||||
(point == p1 && style == "CAP_ROUND") ||
|
(point == p1 && style == "CAP_ROUND") ||
|
||||||
(point == p2 && style == "CAP_ROUND")
|
(point == p2 && style == "CAP_ROUND")
|
||||||
@@ -56,7 +56,7 @@ module test_line2d() {
|
|||||||
|
|
||||||
include <line2d.scad>;
|
include <line2d.scad>;
|
||||||
|
|
||||||
module cap(point, style) {
|
module test_line2d_cap(point, style) {
|
||||||
assertTrue(
|
assertTrue(
|
||||||
(point == p1 && style == "CAP_BUTT") ||
|
(point == p1 && style == "CAP_BUTT") ||
|
||||||
(point == p2 && style == "CAP_BUTT")
|
(point == p2 && style == "CAP_BUTT")
|
||||||
|
Reference in New Issue
Block a user