mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-01 04:20:27 +02:00
refactor: reverse
This commit is contained in:
@@ -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]
|
||||
]
|
||||
)
|
||||
|
Reference in New Issue
Block a user