Public Types | |
typedef configType | t_config |
typedef blub::sharedPointer < customSurfaceTile< t_config > > | pointer |
typedef voxel::tile::surface < t_config > | t_base |
![]() | |
typedef configType | t_config |
typedef base< surface< t_config > > | t_base |
typedef t_config::t_surface::t_tile * | t_thiz |
typedef t_config::t_accessor::t_tile | t_voxelAccessor |
typedef sharedPointer < t_voxelAccessor > | t_voxelAccessorPtr |
typedef vector< typename t_config::t_vertex > | t_vertices |
typedef vector< typename t_config::t_index > | t_indices |
typedef t_config::t_data | t_voxel |
typedef t_config::t_vertex | t_vertex |
typedef array< t_voxel, 2 *2 *2 > | t_calcVoxel |
typedef array< t_voxel, 3 *3 *3+2 *2 > | t_calcVoxelLod |
![]() | |
typedef sharedPointer< surface < configType > > | pointer |
![]() | |
typedef std::enable_shared_from_this < surface< configType > > | t_base |
typedef blub::sharedPointer < surface< configType >const > | t_thisPtrConst |
typedef blub::sharedPointer < surface< configType > > | t_thisPtr |
Public Member Functions | |
t_base::t_vertex | createVertex (const vector3int32 &voxelPos, const typename t_base::t_voxel &voxel0, const typename t_base::t_voxel &voxel1, const vector3 &position, const vector3 &normal) |
t_base::t_vertex | createVertexLod (const vector3int32 &voxelPos, const typename t_base::t_voxel &voxel0, const typename t_base::t_voxel &voxel1, const vector3 &position, const vector3 &normal) |
![]() | |
~surface () | |
~surface desctructor | |
void | calculateSurface (const t_voxelAccessorPtr voxel, const real &voxelSize=1., const bool &calculateNormalCorrection=true, const int32 &lod=0) |
calculateSurface calculates the iso surface. More... | |
void | clear () |
clear erases all buffer/results. | |
bool | getCaluculateTransvoxel () const |
does the transvoxel algo get applied. More... | |
bool | getCaluculateLod () const |
same as getCaluculateTransvoxel() More... | |
const t_vertices & | getVertices () const |
getPositions returns resulting position-list. More... | |
const t_indices & | getIndices () const |
getIndices returns resulting index-list. More... | |
const t_indices & | getIndicesLod (const uint16 &lod) const |
getPositions returns resulting transvoxel-list. Vertices for these indices are in getPositions() and getNormals(). More... | |
![]() | |
t_thisPtrConst | getSharedThisPtr () const |
t_thisPtr | getSharedThisPtr () |
Static Public Member Functions | |
static pointer | create () |
static pointer | createCopy (pointer toCopy) |
![]() | |
static t_base::pointer | create () |
create creates an instance. More... | |
static t_base::pointer | createCopy (typename t_base::pointer toCopy) |
createCopy copies an instance. More... | |
Additional Inherited Members | |
![]() | |
surface () | |
surface constructor | |
t_vertex | createVertex (const vector3int32 &, const t_voxel &, const t_voxel &, const vector3 &position, const vector3 &normal) |
Creates a vertex. | |
t_vertex | createVertexLod (const vector3int32 &, const t_voxel &, const t_voxel &, const vector3 &position, const vector3 &normal) |
Creates a vertex for lod. | |
![]() | |
base () | |
base constrcutor. | |
![]() | |
t_voxelAccessorPtr | m_voxel |
int32 | m_lod |
t_vertices | m_vertices |
t_indices | m_indices |
t_indices | m_indicesLod [6] |