12 #ifndef ROOT_TGLMarchingCubes 13 #define ROOT_TGLMarchingCubes 166 template<
class H,
class E>
194 fSrc = hist->GetArray();
195 fW = hist->GetNbinsX() + 2;
196 fH = hist->GetNbinsY() + 2;
197 fD = hist->GetNbinsZ() + 2;
315 template<
class E,
class V>
318 const V delta = val2 - val1;
321 return (iso - val1) / delta;
324 template<
class H,
class E,
class V>
331 V
x, V
y, V
z, V iso)
const 425 template<
class DataSource,
class ValueType>
435 using DataSourceBase_t::GetW;
436 using DataSourceBase_t::GetH;
437 using DataSourceBase_t::GetD;
438 using DataSourceBase_t::GetData;
439 using SplitterBase_t::SplitEdge;
TH3Adapter< TH3D, Double_t > Type_t
TSlice< ElementType_t > SliceType_t
void ResizeSlice(UInt_t w, UInt_t h)
TDefaultSplitter< TH3C, Char_t, V > Type_t
3-D histogram with a float per channel (see TH1 documentation)}
void SplitEdge(TCell< E > &cell, TIsoMesh< V > *mesh, UInt_t i, V x, V y, V z, V iso) const
TH3Adapter< TH3C, Char_t > Type_t
TH3Adapter< TH3S, Short_t > Type_t
void SetDataSource(const TF3 *f)
Double_t GetData(UInt_t i, UInt_t j, UInt_t k) const
void SetNormalEvaluator(const H *)
TDefaultSplitter< TH3F, Float_t, V > Type_t
TMeshBuilder(Bool_t averagedNormals, ValueType eps=1e-7)
const Float_t eDir[12][3]
TDefaultSplitter< TH3D, Double_t, V > Type_t
V GetOffset(E val1, E val2, V iso)
void FetchDensities() const
UInt_t AddVertex(const V *v)
void SplitEdge(TCell< Double_t > &cell, TIsoMesh< Double_t > *mesh, UInt_t i, Double_t x, Double_t y, Double_t z, Double_t iso) const
Split the edge and find normal in a new vertex.
TH3Adapter< TH3F, Float_t > Type_t
TDefaultSplitter< TKDEFGT, Float_t, Float_t > Type_t
TSourceAdapterSelector< DataSource >::Type_t DataSourceBase_t
const Int_t conTbl[256][16]
TDefaultSplitter< TH3S, Short_t, V > Type_t
3-D histogram with an int per channel (see TH1 documentation)}
3-D histogram with a short per channel (see TH1 documentation)
const ElementType_t * fSrc
TDefaultSplitter< TH3I, Int_t, V > Type_t
TMeshBuilder & operator=(const TMeshBuilder &rhs)
void SetNormalEvaluator(const TF3 *tf3)
3-D histogram with a double per channel (see TH1 documentation)}
A 3-Dim function with parameters.
void BuildRow(SliceType_t *slice) const
The first row (along x) in the first slice: ny == 0, nz == 0, nx : [1, W - 1].
TSplitterSelector< DataSource, ValueType >::Type_t SplitterBase_t
void SetDataSource(const H *hist)
TSlice & operator=(const TSlice &rhs)
void BuildCol(SliceType_t *slice) const
"Col" (column) consists of cubes along y axis on the first slice (nx == 0, nz == 0).
std::vector< TCell< V > > fCells
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
3-D histogram with a byte per channel (see TH1 documentation)
void NextStep(UInt_t depth, const SliceType_t *prevSlice, SliceType_t *curr) const
Fill slice with vertices and triangles.
TCell< ElementType_t > CellType_t
const UChar_t eConn[12][2]
void BuildSlice(SliceType_t *slice) const
Slice with nz == 0.
you should not use this method at all Int_t Int_t z
void BuildFirstCube(SliceType_t *slice) const
The first cube in a grid. nx == 0, ny == 0, nz ==0.
void BuildMesh(const DataSource *src, const TGridGeometry< ValueType > &geom, MeshType_t *mesh, ValueType iso)
Build iso-mesh using marching cubes.
TIsoMesh< ValueType > MeshType_t
DataSourceBase_t::ElementType_t ElementType_t
TH3Adapter< TH3I, Int_t > Type_t
ElementType_t GetData(UInt_t i, UInt_t j, UInt_t k) const
void FetchDensities() const
void BuildNormals() const
Build averaged normals using vertices and trinagles.