Non-convex chasms

This commit is contained in:
2026-01-26 10:59:51 +00:00
parent 962df63e62
commit a6976eae8d
11 changed files with 341 additions and 323 deletions
+1
View File
@@ -4,6 +4,7 @@ module Geometry.Triangulate where
import Data.List
-- assumes that the polygon is convex
polyToTris :: [s] -> [s]
{-# INLINEABLE polyToTris #-}
polyToTris (x : xs) = foldl' (f x) [] $ zip xs $ tail xs