![]() |
Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
|
The Cell class is used in MarchingCubes algorithm to describe a single marching cube data. More...
#include <MarchingCubes.hpp>

Public Member Functions | |
| void | calcIdx (float isolevel) |
| Calculates the cell index (idx) based on the vertex positions and values. The cell index can be represented as a 8-bit number, each vertex is represented by one bit. More... | |
| void | printIdx () |
| Simple function to print the index to console. More... | |
| void | set (size_t idx, float v, int dir, const Vector3D &pos) |
| Function to set the attributes related to each vertex. More... | |
Public Attributes | |
| std::array< Vector3D, 8 > | p |
| Position of each cell vertex. More... | |
| std::array< float, 8 > | val |
| Intensity of each cell vertex. More... | |
| std::array< int, 8 > | dir |
| Normal of each cell vertex. More... | |
| unsigned char | idx |
| Cell index. More... | |
The Cell class is used in MarchingCubes algorithm to describe a single marching cube data.
Definition at line 28 of file MarchingCubes.hpp.
| void Bial::Cell::calcIdx | ( | float | isolevel | ) |
Calculates the cell index (idx) based on the vertex positions and values.
The cell index can be represented as a 8-bit number, each vertex is represented by one bit.
| Isolevel | is used to determine if the vertex is positive or negative. |
| void Bial::Cell::printIdx | ( | ) |
Simple function to print the index to console.
Function to set the attributes related to each vertex.
| idx | Vertex index ( It's not the cell index ) |
| v | Intensity at vertex[idx] |
| dir | Normal at vertex[idx] |
| pos | Position at vertex[idx] |
| std::array< int, 8 > Bial::Cell::dir |
Normal of each cell vertex.
Definition at line 42 of file MarchingCubes.hpp.
| unsigned char Bial::Cell::idx |
Cell index.
Definition at line 46 of file MarchingCubes.hpp.
| std::array< Vector3D, 8 > Bial::Cell::p |
Position of each cell vertex.
Definition at line 34 of file MarchingCubes.hpp.
| std::array< float, 8 > Bial::Cell::val |
Intensity of each cell vertex.
Definition at line 38 of file MarchingCubes.hpp.