Algorithm proposed by Lorensen and Cline to extract triangle meshes from isosurfaces.
More...
#include <MarchingCubes.hpp>
|
static TriangleMesh * | exec (const Image< int > &img, float isolevel) |
| exec More...
|
|
static TriangleMesh * | Binary (const Image< int > &img, const Image< int > &mask, float isolevel) |
| Binary. More...
|
|
static void | getVertexList (std::array< Vector3D, 12 > &vertexList, const Cell &cell, float isolevel) |
| getVertexList More...
|
|
static void | getNormalsList (std::array< Normal, 12 > &normsList, const Cell &cell, float isolevel) |
| getNormalsList More...
|
|
static Vector3D | VertexInterp (float isolevel, const Vector3D &p1, const Vector3D &p2, float valp1, float valp2) |
| VertexInterp. More...
|
|
static Normal | NormalInterp (float isolevel, int dir1, int dir2, float valp1, float valp2) |
| NormalInterp. More...
|
|
static Normal | getNormal (int dir) |
| getNormal More...
|
|
static int | Polygonize (const Cell &cell, float isolevel, Vector< size_t > &tris, Vector< Point3D > &vertices, Vector< Normal > &normals) |
| Polygonize. More...
|
|
static void | printEdges (int idx) |
| printEdges More...
|
|
static void | printTris (int idx) |
| printTris More...
|
|
static void | printVertexList (const std::array< Vector3D, 12 > &vertexList) |
| printVertexList More...
|
|
Algorithm proposed by Lorensen and Cline to extract triangle meshes from isosurfaces.
Definition at line 69 of file MarchingCubes.hpp.
static Normal Bial::MarchingCubes::getNormal |
( |
int |
dir | ) |
|
|
static |
getNormal
- Parameters
-
- Returns
static void Bial::MarchingCubes::getNormalsList |
( |
std::array< Normal, 12 > & |
normsList, |
|
|
const Cell & |
cell, |
|
|
float |
isolevel |
|
) |
| |
|
static |
getNormalsList
- Parameters
-
static void Bial::MarchingCubes::getVertexList |
( |
std::array< Vector3D, 12 > & |
vertexList, |
|
|
const Cell & |
cell, |
|
|
float |
isolevel |
|
) |
| |
|
static |
static Normal Bial::MarchingCubes::NormalInterp |
( |
float |
isolevel, |
|
|
int |
dir1, |
|
|
int |
dir2, |
|
|
float |
valp1, |
|
|
float |
valp2 |
|
) |
| |
|
static |
NormalInterp.
- Parameters
-
isolevel | |
dir1 | |
dir2 | |
valp1 | |
valp2 | |
- Returns
Polygonize.
- Parameters
-
cell | |
isolevel | |
tris | |
vertices | |
normals | |
- Returns
static void Bial::MarchingCubes::printEdges |
( |
int |
idx | ) |
|
|
static |
static void Bial::MarchingCubes::printTris |
( |
int |
idx | ) |
|
|
static |
static void Bial::MarchingCubes::printVertexList |
( |
const std::array< Vector3D, 12 > & |
vertexList | ) |
|
|
static |
printVertexList
- Parameters
-
VertexInterp.
- Parameters
-
isolevel | |
p1 | |
p2 | |
valp1 | |
valp2 | |
- Returns
int Bial::MarchingCubes::edgeTable[256] |
|
static |
char Bial::MarchingCubes::triTable[256][16] |
|
static |
The documentation for this class was generated from the following file: