Performance improvements, combine cap and geometry buffer

This commit is contained in:
2021-09-18 19:48:35 +01:00
parent 80aa67015c
commit c605ac74ff
8 changed files with 48 additions and 20 deletions
+3
View File
@@ -1,3 +1,4 @@
{-# OPTIONS_GHC -Wno-missing-signatures #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
module Shape.Data
@@ -18,8 +19,10 @@ instance Semigroup Shape where
instance Monoid Shape where
mempty = Shape mempty mempty
shVList :: Shape -> [ShapeV]
{-# INLINE shVList #-}
shVList = DL.toList . _shVertices
shEList :: Shape -> [Point3]
{-# INLINE shEList #-}
shEList = DL.toList . _shEdges