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

MarchingCubes

Synopsis

Documentation

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

type Voxel a = ([a], (Bounds a, Dims)) Source #

makeVoxel Source #

Arguments

:: RealFloat 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

:: Voxel Double

voxel obtained with makeVoxel

-> Double

isovalue

-> IO (Mesh Double) 

Make mesh of isosurface.