- translate :: V3 -> Geometry -> Geometry
- extrude :: V3 -> Geometry -> Geometry
- extr_outline :: Vector Int -> Vector (Vector Int)
- cycleNeighbours :: Vector a -> Vector (Vector a)
- cycleN :: a -> Vector a -> Vector (Vector a)
- atop :: Geometry -> Geometry -> Geometry
- changeDiffuseColor :: String -> V4 -> Geometry -> Geometry
- changeAmbientColor :: String -> V4 -> Geometry -> Geometry
Documentation
extrude :: V3 -> Geometry -> GeometrySource
extrude a 2d polygon to 3d, the same points are added again with extrusion direction v
cycleNeighbours :: Vector a -> Vector (Vector a)Source
return a list containing lists of every element with its neighbour i.e. [e1,e2,e3] -> [ [e1,e2], [e2,e3], [e3, e1] ]