mecha-0.0.5: Mecha is a solid modeling language geared for machine design.

Language.Mecha.Solid

Synopsis

Documentation

sphere :: Double -> SolidSource

A sphere with diameter, centered at origin.

cone :: Double -> Double -> Double -> SolidSource

A cone with base at the origin, given base diameter, top diameter, and height.

box :: (Double, Double) -> (Double, Double) -> (Double, Double) -> SolidSource

A hollow cylinder with base at the origin, given outer diameter, inner diamter, and height.

A box with ranges or X, Y, and Z positions.

cube :: Double -> SolidSource

A cube with edge length, centered at origin.

cylinder :: Double -> Double -> SolidSource

A cylinder with base at the origin, given diameter and height.

radial :: (Double -> Solid) -> Int -> SolidSource

Arranges a solid in a radial pattern.