module GridBounds.Triangulate
( createGrid
, createCompressedGrid
, tcreateGrid
, tcreateCompressedGrid
) where
import GridBounds.Bounds (Bounds)
import qualified GridBounds.Bounds as B
import qualified GridBounds.Transform as T
import GridBox.Box (Box)
import GridBox.Compress (CompressedGrid)
import Earclipper.EarClipping (toTriangle)
createGrid :: [Bounds] -> (Double, Double) -> Double -> Double -> Double -> Double -> [Box]
createGrid =
B.createGrid . triangulate
createCompressedGrid :: [Bounds] -> (Double, Double) -> Double -> Double -> Double -> Double -> CompressedGrid
createCompressedGrid =
B.createCompressedGrid . triangulate
tcreateGrid :: [Bounds] -> (Double, Double) -> Double -> (Double, Double) -> Double -> Double -> Double -> Double -> [Box]
tcreateGrid =
T.createGrid . triangulate
tcreateCompressedGrid :: [Bounds] -> (Double, Double) -> Double -> (Double, Double) -> Double -> Double -> Double -> Double -> CompressedGrid
tcreateCompressedGrid =
T.createCompressedGrid . triangulate
triangulate :: [Bounds] -> [Bounds]
triangulate =
concatMap toTriangle