waterfall-cad-0.1.1.1: Declarative CAD/Solid Modeling Library
Safe HaskellNone
LanguageHaskell2010

Waterfall.TwoD.Shape

Synopsis

Documentation

data Shape Source #

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

Instances details
Transformable2D Shape Source # 
Instance details

Defined in Waterfall.TwoD.Transforms

fromPath :: Path2D -> Shape Source #

Construct a 2D Shape from a closed path

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