igor::iContouringCubes Class Reference

#include <iContouringCubes.h>

Public Member Functions

 iContouringCubes ()
 
void setVoxelData (iVoxelData *voxelData)
 
void setVoxelDataNextLOD (iVoxelData *voxelData)
 
void setNextLODVoxelOffset (const iaVector3I &offset)
 
iMeshPtr compile (iaVector3I pos, iaVector3I volume, uint32 lod=0, uint32 neighbors=0)
 

Static Public Member Functions

static float64 calcLODScale (uint32 lod)
 
static iaVector3f calcLODOffset (uint32 lod)
 

Detailed Description

an algorythm inspired by dual contouring and marching cubes

Constructor & Destructor Documentation

◆ iContouringCubes()

igor::iContouringCubes::iContouringCubes ( )

initialize members

Member Function Documentation

◆ calcLODOffset()

iaVector3f igor::iContouringCubes::calcLODOffset ( uint32  lod)
static

calculates the lod offset based on lod

Parameters
lodgiven lod
Returns
offset for given lod

◆ calcLODScale()

float64 igor::iContouringCubes::calcLODScale ( uint32  lod)
static

calculates scale based on LOD

Parameters
lodthe lod to cal the scale for
Returns
the scale of the given lod

◆ compile()

iMeshPtr igor::iContouringCubes::compile ( iaVector3I  pos,
iaVector3I  volume,
uint32  lod = 0,
uint32  neighbors = 0 
)

compile mesh out of voxel data

Parameters
poslocation in voxel data to be compiled
volumethe size of the are to be compiled
Returns
mesh

◆ setNextLODVoxelOffset()

void igor::iContouringCubes::setNextLODVoxelOffset ( const iaVector3I offset)

sets offset to next (lower resolution) lod voxel data

Parameters
offsetoffset to next lod voxel data

◆ setVoxelData()

void igor::iContouringCubes::setVoxelData ( iVoxelData voxelData)

sets voxel data to be used

Parameters
voxelDatathe voxel data

◆ setVoxelDataNextLOD()

void igor::iContouringCubes::setVoxelDataNextLOD ( iVoxelData voxelData)

sets voxel data of next LOD level (lower resolution)

voxel data to next LOD is optional

Parameters
voxelDatathe voxel data of the next LOD

The documentation for this class was generated from the following files: