KrisLibrary  1.0.0
Namespaces | Functions
MarchingCubes.h File Reference

The marching cubes algorithm for extracting an isosurface of a 3D function. More...

#include "TriMesh.h"
#include <KrisLibrary/structs/array3d.h>

Go to the source code of this file.

Namespaces

 Math
 Contains all definitions in the Math package.
 
 Meshing
 The namespace for all classes/functions in the Meshing package.
 

Functions

void Meshing::MarchingCubes (ScalarFieldFunction &f, Real isoval, const AABB3D &bb, const int dims[3], TriMesh &m)
 Takes a 3D function as input, meshes the isosurface at f(x)=isoval.
 
void Meshing::MarchingCubes (Real(*f)(Real, Real, Real), Real isoval, const AABB3D &bb, const int dims[3], TriMesh &m)
 Takes a 3D function as input, meshes the isosurface at f(x)=isoval.
 
template<class T >
void Meshing::MarchingCubes (const Array3D< T > &input, T isoLevel, const AABB3D &bb, TriMesh &m)
 
void Meshing::CubeToMesh (const Real origvals[8], Real isoLevel, const AABB3D &bb, TriMesh &m)
 

Detailed Description

The marching cubes algorithm for extracting an isosurface of a 3D function.