FieldTrip-0.2.2: Functional 3DSource codeContentsIndex
Graphics.FieldTrip.Geometry3
Stabilityexperimental
Maintainerconal@conal.net, andygill@ku.edu
Contents
Geometry filters
Description
3D geometry
Synopsis
data Geometry3
onMaterialG :: MaterialTrans -> Filter3
materialG :: Material -> Filter3
rendererG :: Renderer -> Geometry3
renderableG :: Renderable a => a -> Geometry3
flatG :: Geometry2 -> Geometry3
renderWith3 :: GContext -> Geometry3 -> IO ()
render3 :: Geometry3 -> IO ()
normalArrowG :: Col -> Filter3
cube :: Geometry3
box3 :: (MatrixComponent s, Real s, Floating s) => s -> s -> s -> Geometry3
sphere :: R -> Geometry3
usphere :: Geometry3
frustum :: R -> R -> R -> Geometry3
cone :: R -> R -> Geometry3
cylinder :: R -> R -> Geometry3
torus :: R -> R -> Geometry3
surfG :: Surf (Vector2 R :> R) -> Geometry3
surfG' :: (Floating s, InnerSpace s, Scalar s ~ s, HasBasis s, HasTrie (Basis s), Basis s ~ (), VertexComponent s, NormalComponent s, Color c) => Surf (Vector2 s :> s) -> ((s, s) -> c) -> Geometry3
type Filter3 = Geometry3 -> Geometry3
move3 :: (MatrixComponent s, Real s, Floating s) => s -> s -> s -> Filter3
move3Y :: (MatrixComponent s, Real s, Floating s) => s -> Filter3
pivot3 :: (MatrixComponent s, Floating s, Real s) => Vector3 s -> Filter3
andFlip3 :: (MatrixComponent s, Floating s, Real s) => Vector3 s -> Filter3
pivot3Y :: Filter3
vsurf :: (InnerSpace s, Floating s, Scalar s ~ s, HasBasis s, HasTrie (Basis s), Basis s ~ ()) => Surf (Vector2 s :> s) -> Vector2 s -> VN3 s
Documentation
data Geometry3 Source
3D geometry
show/hide Instances
onMaterialG :: MaterialTrans -> Filter3Source
Modify the material in a geometry. See also materialG.
materialG :: Material -> Filter3Source
Replace the material of a geometry. More generally, see onMaterialG.
rendererG :: Renderer -> Geometry3Source
Make a geometry from a rendering action. The action must leave graphics state as it found it.
renderableG :: Renderable a => a -> Geometry3Source
flatG :: Geometry2 -> Geometry3Source
Flat geometry
renderWith3 :: GContext -> Geometry3 -> IO ()Source
Render the geometry, given a graphics context. Leaves graphics state unchanged.
render3 :: Geometry3 -> IO ()Source
Render the geometry with default graphics context. See also renderWith3.
normalArrowG :: Col -> Filter3Source
cube :: Geometry3Source
box3 :: (MatrixComponent s, Real s, Floating s) => s -> s -> s -> Geometry3Source
sphere :: R -> Geometry3Source
Sphere with given radius
usphere :: Geometry3Source
Unit sphere
frustum :: R -> R -> R -> Geometry3Source
Frustum of a cone, with given base radius, top radius, and height, centered at origin.
cone :: R -> R -> Geometry3Source
Cone with given base radius and height, and height, centered at origin..
cylinder :: R -> R -> Geometry3Source
Cylinder with given radius and height, centered at origin, and height, centered at origin..
torus :: R -> R -> Geometry3Source
Torus with given radii for the sweep and the swept circle
surfG :: Surf (Vector2 R :> R) -> Geometry3Source
Parametric surface without texture
surfG' :: (Floating s, InnerSpace s, Scalar s ~ s, HasBasis s, HasTrie (Basis s), Basis s ~ (), VertexComponent s, NormalComponent s, Color c) => Surf (Vector2 s :> s) -> ((s, s) -> c) -> Geometry3Source
Parametric surface with texture surfG' :: Surf (Vector2 R :> R) -> ImageC -> Geometry3
Geometry filters
type Filter3 = Geometry3 -> Geometry3Source
move3 :: (MatrixComponent s, Real s, Floating s) => s -> s -> s -> Filter3Source
move3Y :: (MatrixComponent s, Real s, Floating s) => s -> Filter3Source
pivot3 :: (MatrixComponent s, Floating s, Real s) => Vector3 s -> Filter3Source
andFlip3 :: (MatrixComponent s, Floating s, Real s) => Vector3 s -> Filter3Source
pivot3Y :: Filter3Source
vsurf :: (InnerSpace s, Floating s, Scalar s ~ s, HasBasis s, HasTrie (Basis s), Basis s ~ ()) => Surf (Vector2 s :> s) -> Vector2 s -> VN3 sSource
Produced by Haddock version 2.3.0