Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype PolyShape = PolyShape {}
- data PolyShapeWithHoles = PolyShapeWithHoles {}
- svgToPolyShapes :: Tree -> [PolyShape]
- renderPolyShape :: PolyShape -> Tree
- renderPolyShapes :: [PolyShape] -> Tree
- renderPolyShapePoints :: PolyShape -> Tree
- plPathCommands :: PolyShape -> [PathCommand]
- plLineCommands :: PolyShape -> [LineCommand]
- plLength :: PolyShape -> Double
- plArea :: PolyShape -> Double
- plCurves :: PolyShape -> [CubicBezier Double]
- isInsideOf :: PolyShape -> PolyShape -> Bool
- plFromPolygon :: [RPoint] -> PolyShape
- plPolygonify :: Double -> PolyShape -> [Point Double]
- plDecompose :: [PolyShape] -> [[RPoint]]
- unionPolyShapes :: [PolyShape] -> [PolyShape]
- unionPolyShapes' :: Double -> [PolyShape] -> [PolyShape]
- plDecompose' :: Double -> [PolyShape] -> [[RPoint]]
- decomposePolygon :: [Point Double] -> [[RPoint]]
- plGroupShapes :: [PolyShape] -> [PolyShapeWithHoles]
- mergePolyShapeHoles :: PolyShapeWithHoles -> PolyShape
- polyShapeTolerance :: Double
- plPartial :: Double -> PolyShape -> PolyShape
- plPartialGroup :: Double -> [PolyShape] -> [PolyShape]
- plPartial' :: Double -> ([DPoint], PolyShape) -> PolyShape
- plGroupTouching :: [PolyShape] -> [[([DPoint], PolyShape)]]
Documentation
Shape drawn by continuous line. May have overlap, may be convex.
data PolyShapeWithHoles Source #
svgToPolyShapes :: Tree -> [PolyShape] Source #
renderPolyShape :: PolyShape -> Tree Source #
renderPolyShapes :: [PolyShape] -> Tree Source #
plPathCommands :: PolyShape -> [PathCommand] Source #
plLineCommands :: PolyShape -> [LineCommand] Source #
plFromPolygon :: [RPoint] -> PolyShape Source #
plDecompose :: [PolyShape] -> [[RPoint]] Source #
Deconstruct a polyshape into non-intersecting, convex polygons.
unionPolyShapes :: [PolyShape] -> [PolyShape] Source #
plDecompose' :: Double -> [PolyShape] -> [[RPoint]] Source #
Deconstruct a polyshape into non-intersecting, convex polygons.
plGroupShapes :: [PolyShape] -> [PolyShapeWithHoles] Source #