1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

refactor: reverse

This commit is contained in:
Justin Lin
2022-04-16 15:59:17 +08:00
parent a8f9499093
commit 449e7b520b

View File

@@ -3,10 +3,9 @@ use <__half_trapezium.scad>;
function __trapezium(length, h, round_r) =
let(
r_half_trapezium = __half_trapezium(length / 2, h, round_r),
to = len(r_half_trapezium) - 1,
l_half_trapezium = [
for(i = 0; i <= to; i = i + 1)
let(pt = r_half_trapezium[to - i])
for(i = len(r_half_trapezium) - 1; i > -1; i = i - 1)
let(pt = r_half_trapezium[i])
[-pt.x, pt.y]
]
)