ROOT
6.06/09
Reference Guide
|
Definition at line 432 of file TGLMarchingCubes.h.
Public Member Functions | |
TMeshBuilder (Bool_t averagedNormals, ValueType eps=1e-7) | |
void | BuildMesh (const DataSource *src, const TGridGeometry< ValueType > &geom, MeshType_t *mesh, ValueType iso) |
Build iso-mesh using marching cubes. More... | |
Private Types | |
typedef TSourceAdapterSelector< DataSource >::Type_t | DataSourceBase_t |
typedef TSplitterSelector< DataSource, ValueType >::Type_t | SplitterBase_t |
typedef DataSourceBase_t::ElementType_t | ElementType_t |
typedef TCell< ElementType_t > | CellType_t |
typedef TSlice< ElementType_t > | SliceType_t |
typedef TIsoMesh< ValueType > | MeshType_t |
Private Member Functions | |
void | NextStep (UInt_t depth, const SliceType_t *prevSlice, SliceType_t *curr) const |
Fill slice with vertices and triangles. More... | |
void | BuildFirstCube (SliceType_t *slice) const |
The first cube in a grid. nx == 0, ny == 0, nz ==0. More... | |
void | BuildRow (SliceType_t *slice) const |
The first row (along x) in the first slice: ny == 0, nz == 0, nx : [1, W - 1]. More... | |
void | BuildCol (SliceType_t *slice) const |
"Col" (column) consists of cubes along y axis on the first slice (nx == 0, nz == 0). More... | |
void | BuildSlice (SliceType_t *slice) const |
Slice with nz == 0. More... | |
void | BuildFirstCube (UInt_t depth, const SliceType_t *prevSlice, SliceType_t *slice) const |
The first cube in a slice with nz == depth. More... | |
void | BuildRow (UInt_t depth, const SliceType_t *prevSlice, SliceType_t *slice) const |
Row with ny == 0 and nz == depth, nx : [1, W - 1]. More... | |
void | BuildCol (UInt_t depth, const SliceType_t *prevSlice, SliceType_t *slice) const |
nz == depth, nx == 0, ny : [1, H - 1]. More... | |
void | BuildSlice (UInt_t depth, const SliceType_t *prevSlice, SliceType_t *slice) const |
nz == depth, nx : [1, W - 1], ny : [1, H - 1]. More... | |
void | BuildNormals () const |
Build averaged normals using vertices and trinagles. More... | |
TMeshBuilder (const TMeshBuilder &rhs) | |
TMeshBuilder & | operator= (const TMeshBuilder &rhs) |
Private Attributes | |
Bool_t | fAvgNormals |
SliceType_t | fSlices [2] |
MeshType_t * | fMesh |
ValueType | fIso |
ValueType | fEpsilon |
#include <TGLMarchingCubes.h>
|
private |
Definition at line 449 of file TGLMarchingCubes.h.
|
private |
Definition at line 437 of file TGLMarchingCubes.h.
|
private |
Definition at line 447 of file TGLMarchingCubes.h.
|
private |
Definition at line 451 of file TGLMarchingCubes.h.
|
private |
Definition at line 450 of file TGLMarchingCubes.h.
|
private |
Definition at line 438 of file TGLMarchingCubes.h.
|
inline |
Definition at line 454 of file TGLMarchingCubes.h.
|
private |
|
private |
"Col" (column) consists of cubes along y axis on the first slice (nx == 0, nz == 0).
Each cube has a previous cube and shares values: 0, 1, 4, 5 (in prev.: 3, 2, 7, 6); and edges: 0, 4, 8, 9 (in prev.: 2, 6, 10, 11).
Definition at line 336 of file TGLMarchingCubes.cxx.
|
private |
nz == depth, nx == 0, ny : [1, H - 1].
Two neighbours - from previous slice ("bottom" cube) and previous cube in a column.
Definition at line 623 of file TGLMarchingCubes.cxx.
|
private |
The first cube in a grid. nx == 0, ny == 0, nz ==0.
Definition at line 238 of file TGLMarchingCubes.cxx.
|
private |
The first cube in a slice with nz == depth.
Neighbour is the first cube in the previous slice. Four values and four edges come from the previous cube.
Definition at line 480 of file TGLMarchingCubes.cxx.
void Rgl::Mc::TMeshBuilder< D, V >::BuildMesh | ( | const D * | src, |
const TGridGeometry< V > & | geom, | ||
MeshType_t * | mesh, | ||
V | iso | ||
) |
Build iso-mesh using marching cubes.
Definition at line 177 of file TGLMarchingCubes.cxx.
Referenced by TGL5DPainter::AddSurface(), TGLTF3Painter::InitGeometry(), TGL5DPainter::ResetGeometryRanges(), and TGLIsoPainter::SetMesh().
|
private |
Build averaged normals using vertices and trinagles.
Definition at line 772 of file TGLMarchingCubes.cxx.
|
private |
The first row (along x) in the first slice: ny == 0, nz == 0, nx : [1, W - 1].
Each cube has previous cube. Values 0, 3, 4, 7 are taken from the previous cube. Edges 3, 7, 8, 11 are taken from the previous cube.
Definition at line 272 of file TGLMarchingCubes.cxx.
|
private |
Row with ny == 0 and nz == depth, nx : [1, W - 1].
Two neighbours: one from previous slice (called bottom cube here), the second is the previous cube in a row.
Definition at line 546 of file TGLMarchingCubes.cxx.
|
private |
Slice with nz == 0.
nx : [1, W - 1], ny : [1, H - 1]. nx increased inside inner loop, ny - enclosing loop. Each cube has two neighbours: ny - 1 => "left", nx - 1 => "right".
Definition at line 404 of file TGLMarchingCubes.cxx.
|
private |
nz == depth, nx : [1, W - 1], ny : [1, H - 1].
Each cube has 3 neighbours, "bottom" cube from the previous slice, "left" and "right" from the current slice.
Definition at line 697 of file TGLMarchingCubes.cxx.
|
private |
Fill slice with vertices and triangles.
Definition at line 217 of file TGLMarchingCubes.cxx.
|
private |
|
private |
Definition at line 464 of file TGLMarchingCubes.h.
|
private |
Definition at line 468 of file TGLMarchingCubes.h.
|
private |
Definition at line 467 of file TGLMarchingCubes.h.
|
private |
Definition at line 466 of file TGLMarchingCubes.h.
|
private |
Definition at line 465 of file TGLMarchingCubes.h.