marching-cubes-0.1.0.0: Marching Cubes
Safe HaskellSafe-Inferred
LanguageHaskell2010

MarchingCubes

Synopsis

Documentation

type XYZ a = (a, a, a) Source #

type Voxel a = ((UArray Dims a, a), (Bounds a, Dims)) Source #

makeVoxel Source #

Arguments

:: (RealFloat a, IArray UArray a) 
=> (XYZ a -> a)

the function defining the isosurface

-> Bounds a

bounds of the grid

-> Dims

numbers of subdivisions of the grid

-> Voxel a 

Make the voxel.

data Mesh a Source #

Constructors

Mesh 

Fields

Instances

Instances details
(Show a, Unbox a) => Show (Mesh a) Source # 
Instance details

Defined in MarchingCubes.Mesh

Methods

showsPrec :: Int -> Mesh a -> ShowS #

show :: Mesh a -> String #

showList :: [Mesh a] -> ShowS #

makeMesh Source #

Arguments

:: (Unbox a, RealFloat a, IArray UArray a) 
=> Voxel a

voxel obtained with makeVoxel

-> a

isovalue

-> Mesh a 

Make mesh of isosurface.