We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063ba2f commit 14e7673Copy full SHA for 14e7673
src/rectangles.jl
@@ -551,14 +551,14 @@ function coordinates(rect::Rect3D, nvertices=nothing)
551
# TODO use n
552
w = widths(rect)
553
o = origin(rect)
554
- return map(x -> Point3f0(x .* w .+ o), [
555
- [0, 0, 0], [0, 0, 1], [0, 1, 1], [0, 1, 0],
556
- [0, 0, 0], [1, 0, 0], [1, 0, 1], [0, 0, 1],
557
- [0, 0, 0], [0, 1, 0], [1, 1, 0], [1, 0, 0],
558
-
559
- [1, 1, 1], [0, 1, 1], [0, 0, 1], [1, 0, 1],
560
- [1, 1, 1], [1, 0, 1], [1, 0, 0], [1, 1, 0],
561
- [1, 1, 1], [1, 1, 0], [0, 1, 0], [0, 1, 1]
+ return ((x .* w .+ o) for x in Point{3, Int}[
+ (0, 0, 0), (0, 0, 1), (0, 1, 1), (0, 1, 0),
+ (0, 0, 0), (1, 0, 0), (1, 0, 1), (0, 0, 1),
+ (0, 0, 0), (0, 1, 0), (1, 1, 0), (1, 0, 0),
+
+ (1, 1, 1), (0, 1, 1), (0, 0, 1), (1, 0, 1),
+ (1, 1, 1), (1, 0, 1), (1, 0, 0), (1, 1, 0),
+ (1, 1, 1), (1, 1, 0), (0, 1, 0), (0, 1, 1)
562
])
563
end
564
0 commit comments