|
| Graphics.FieldTrip.ParamSurf | | Stability | experimental | | Maintainer | conal@conal.net |
|
|
|
| Description |
| Parametric surfaces with automatic normals
|
|
| Synopsis |
|
| type HeightField s = Two s -> One s | | | type Surf s = Two s -> Three s | | | type USurf = forall s. Floating s => Surf s | | | type Curve2 s = One s -> Two s | | | type Curve3 s = One s -> Three s | | | type Warp1 s = One s -> One s | | | type Warp2 s = Two s -> Two s | | | type Warp3 s = Three s -> Three s | | | mul2pi :: Floating s => s -> s | | | sinU :: Floating s => s -> s | | | hfSurf :: HeightField s -> Surf s | | | fcurve :: Warp1 s -> Curve2 s | | | circle :: Floating s => Curve2 s | | | semiCircle :: Floating s => Curve2 s | | | torus :: (Floating s, VectorSpace s, Scalar s ~ s) => s -> s -> Surf s | | | revolveG :: Floating s => (s -> Curve2 s) -> Surf s | | | revolve :: Floating s => Curve2 s -> Surf s | | | sphere1 :: Floating s => Surf s | | | profile :: Num s => Curve2 s -> Curve2 s -> Surf s | | | sphere3 :: Floating s => Surf s | | | frustum :: (Floating s, VectorSpace s, Scalar s ~ s) => s -> s -> s -> Surf s | | | ucylinder :: (Floating s, VectorSpace s) => Surf s | | | cartF :: (a -> b -> c) -> (u -> a) -> (v -> b) -> (u, v) -> c | | | sweep :: VectorSpace s => Curve3 s -> Curve3 s -> Surf s | | | eggcrateH :: Floating s => HeightField s | | | revolveH :: (Floating s, InnerSpace s, Scalar s ~ s) => Warp1 s -> HeightField s | | | rippleH :: (Floating s, InnerSpace s, Scalar s ~ s) => HeightField s | | | ripple :: Floating s => Surf s | | | displaceV :: (InnerSpace v, s ~ Scalar v, Floating s, HasNormal v) => v -> Scalar v -> v | | | displace :: (InnerSpace v, Scalar v ~ s, Floating s, HasNormal v, Applicative f) => f v -> f (Scalar v) -> f v | | | rotate :: Floating s => s -> Warp2 s | | | addY :: Num s => (a -> Two s) -> a -> Three s | | | addXZ :: Num s => (a -> One s) -> a -> Three s | | | onY :: Warp1 s -> Warp3 s | | | onYZ :: Warp2 s -> Warp3 s | | | onY' :: Warp1 s -> (a -> Three s) -> a -> Three s | | | onXZ' :: Warp2 s -> (a -> Three s) -> a -> Three s |
|
|
| Documentation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Trig functions with unit period ([-12,12])
|
|
|
| Turn a height field into a surface
|
|
|
| Like hfSurf but for curve construction
|
|
|
| Unit circle.
|
|
|
| Half semi circle, with theta in [-pi2,pi2]
|
|
|
| Torus, given radius of sweep circle and cross section
|
|
|
|
|
|
|
|
|
| Profile product.
|
|
|
|
|
| Frustum, given base & cap radii and height.
|
|
|
| Unit cylinder. Unit height and radii
|
|
| cartF :: (a -> b -> c) -> (u -> a) -> (v -> b) -> (u, v) -> c | Source |
|
| Given a combining op and two curves, make a surface. A sort of
Cartesian product with combination.
|
|
|
|
|
| One period, unit height eggcrate
|
|
|
|
|
|
|
| Simple ripply pond shape
|
|
|
| Apply a displacement map at a value
|
|
|
| Apply a displacement map to a function (e.g., Curve2 or Surf) or
other container.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Produced by Haddock version 2.3.0 |