Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Shape
- fromPath :: Path2D -> Shape
- unitCircle :: Shape
- unitSquare :: Shape
- centeredSquare :: Shape
Documentation
A Region in 2D Space
In general, this is used as a face, and extruded along some sort of path
Under the hood, this is represented by an OpenCascade Shape
This should be of type Face
, constrained to the plane \( z=0 \).
Please feel free to report a bug if you're able to construct a Shape
which does not lie on this plane (without using Internal functions).
Or which is not either a Face
, or a composite of faces.
Instances
unitCircle :: Shape Source #
Circle with radius 1, centered on the origin
unitSquare :: Shape Source #
Square with side length of 1, one vertex on the origin, another on \( (1, 1) \)
centeredSquare :: Shape Source #
Square with side length of 1, centered on the origin