MarchingCubes.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <ionScene/CSimpleMesh.h>
5 #include "SVolume.h"
6 
7 
8 namespace ion
9 {
10 
12  {
13  float Value = 0;
15 
17  {}
18 
19  SMarchingCubesPoint(float const & value)
20  : Value(value)
21  {}
22  };
23 
25 
26  void CalculateGradient(SMarchingCubesVolume & Volume);
27  ion::Scene::CSimpleMesh * MarchingCubes(SMarchingCubesVolume & Volume);
28 
29  extern int const TriTable[256][16];
30  extern uint const EdgeTable[256];
31 
32 }
Definition: CSimpleMesh.h:33
int const TriTable[256][16]
Definition: MarchingCubesLookupTables.h:45
uint const EdgeTable[256]
Definition: MarchingCubesLookupTables.h:9
Definition: MarchingCubes.h:11
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
unsigned int uint
Definition: ionTypes.h:42
ion::Scene::CSimpleMesh * MarchingCubes(SMarchingCubesVolume &Volume)
Definition: MarchingCubes.cpp:24
SVolume< SMarchingCubesPoint > SMarchingCubesVolume
Definition: MarchingCubes.h:24
SMarchingCubesPoint(float const &value)
Definition: MarchingCubes.h:19
Definition: SVolume.h:12
float Value
Definition: MarchingCubes.h:13
SMarchingCubesPoint()
Definition: MarchingCubes.h:16
void CalculateGradient(SMarchingCubesVolume &Volume)
Definition: MarchingCubes.cpp:11
vec3f Gradient
Definition: MarchingCubes.h:14