Merge Picture and RenderType datatypes
This commit is contained in:
+6
-1
@@ -83,7 +83,12 @@ boxABC a b c =
|
||||
faceNA = rhombus c b
|
||||
|
||||
polyToPics :: Polyhedra -> [Picture]
|
||||
polyToPics = map Poly3D . _pyFaces
|
||||
polyToPics = map helpPoly3D . _pyFaces
|
||||
|
||||
helpPoly3D vs = zl $ RenderPoly $ polyToTris vs
|
||||
where
|
||||
zl :: RenderType -> [(Int,RenderType)]
|
||||
zl rt = [(0,rt)]
|
||||
|
||||
polysToPic :: [Polyhedra] -> Picture
|
||||
polysToPic = pictures . concatMap polyToPics
|
||||
|
||||
Reference in New Issue
Block a user