Refactor, move towards adding cylinders
This commit is contained in:
+6
-9
@@ -13,16 +13,13 @@ import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
import Geometry.Data
|
||||
|
||||
{-# INLINE shVfromList #-}
|
||||
shVfromList = id
|
||||
|
||||
{-# INLINE shEfromList #-}
|
||||
shEfromList = id
|
||||
data ShapeType = TopPrism { _prismSize :: Int }
|
||||
| TopBox { _topBoxSize :: Int }
|
||||
| TopCylinder { _topCylinderSize :: Int }
|
||||
data ShapeType
|
||||
= TopPrism { _prismSize :: Int }
|
||||
| FlatFaces { _topBoxSize :: Int }
|
||||
| RoundedFaces { _shapeHalfSize :: Int }
|
||||
| Cylinder { _cylinderSize :: Int }
|
||||
deriving (Eq, Ord, Show, Read)
|
||||
-- for TopCylinder, the first vertex in _sfVs should be the center of the top
|
||||
-- for RoundedFaces, the first vertex in _sfVs should be the center of the top
|
||||
-- plane, the second should be the center of the bottom plane.
|
||||
|
||||
data Surface = Surface
|
||||
|
||||
Reference in New Issue
Block a user