mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-07 07:16:36 +02:00
refactor: reverse
This commit is contained in:
@@ -3,10 +3,9 @@ use <__half_trapezium.scad>;
|
|||||||
function __trapezium(length, h, round_r) =
|
function __trapezium(length, h, round_r) =
|
||||||
let(
|
let(
|
||||||
r_half_trapezium = __half_trapezium(length / 2, h, round_r),
|
r_half_trapezium = __half_trapezium(length / 2, h, round_r),
|
||||||
to = len(r_half_trapezium) - 1,
|
|
||||||
l_half_trapezium = [
|
l_half_trapezium = [
|
||||||
for(i = 0; i <= to; i = i + 1)
|
for(i = len(r_half_trapezium) - 1; i > -1; i = i - 1)
|
||||||
let(pt = r_half_trapezium[to - i])
|
let(pt = r_half_trapezium[i])
|
||||||
[-pt.x, pt.y]
|
[-pt.x, pt.y]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user