Refactor shapes, prepare for different normals at single vertex pos
This commit is contained in:
@@ -144,7 +144,7 @@ putShape sh =
|
||||
--shapePoints :: Shape -> Stream (Of Point2) Identity ()
|
||||
--shapePoints = S.each . concatMap (map (stripZ . _svPos) . _shVs)
|
||||
shapePoints :: Shape -> [Point2]
|
||||
shapePoints = concatMap (map (stripZ . _svPos) . _shVs)
|
||||
shapePoints = concatMap (map stripZ . _sfVs)
|
||||
|
||||
shapeBounds :: Shape -> (Float, Float, Float, Float)
|
||||
shapeBounds = fromMaybe (0, 0, 0, 0) . boundPoints . shapePoints
|
||||
|
||||
Reference in New Issue
Block a user