Refactor, move towards adding cylinders
This commit is contained in:
+2
-2
@@ -78,7 +78,7 @@ upperBox
|
||||
-> [Point2]
|
||||
-> Shape
|
||||
{-# INLINE upperBox #-}
|
||||
upperBox h ps = singleShape (Surface (TopBox n) (f ps) white)
|
||||
upperBox h ps = singleShape (Surface (FlatFaces n) (f ps) white)
|
||||
where
|
||||
n = length ps
|
||||
g h' (V2 x y) = V3 x y h'
|
||||
@@ -90,7 +90,7 @@ upperCylinder
|
||||
-> [Point2]
|
||||
-> Shape
|
||||
{-# INLINE upperCylinder #-}
|
||||
upperCylinder h ps = singleShape (Surface (TopCylinder n) (addZ h cc:addZ 0 cc:f ps) black)
|
||||
upperCylinder h ps = singleShape (Surface (RoundedFaces n) (addZ h cc:addZ 0 cc:f ps) black)
|
||||
where
|
||||
cc = centroid ps
|
||||
n = length ps
|
||||
|
||||
Reference in New Issue
Block a user