Skip to content

Commit 94aad14

Browse files
committed
demos: less whitespace
1 parent 585619d commit 94aad14

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/Graphics/Implicit/Viewer/Demos.hs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@ demoRotatingAnim t =
1717
rotate3 (0, 0, t*2*pi)
1818
$ cylinder2 2 1 2 `ontop` rect3R 0 (-3,-3,-1) (3,3,1)
1919

20-
2120
ontop :: SymbolicObj3 -> SymbolicObj3 -> SymbolicObj3
2221
ontop a b = union [ translate (0, 0, z) a, b ]
23-
where z =
24-
let
25-
((_, _, aBottom), _) = getBox a
26-
(_, (_ ,_ , bTop)) = getBox b
27-
in bTop - aBottom
28-
29-
22+
where z = let
23+
((_, _, aBottom), _) = getBox a
24+
(_, (_ ,_ , bTop)) = getBox b
25+
in bTop - aBottom
3026

3127
demoTranslatedSymbolic :: SymbolicObj3
3228
demoTranslatedSymbolic = translate (45, 0, 0) demoSymbolic
@@ -67,6 +63,3 @@ demoScene = union $ [
6763
-- , translate (55, 55, 0) demoSymbolic
6864
] ++
6965
map (\x -> translate (0,0,20 + (10 - x) * 11) (rect3R 0 (0,0,0) (10 - x, 10 - x, 10 - x))) [0..9]
70-
71-
72-

0 commit comments

Comments
 (0)