Description

Classes

   
class MinSG::VoxelWorld::Material
class MinSG::VoxelWorld::MaterialLib

Typedefs

   
   
typedef std::pair< std::vector< std::tuple< Geometry::_Vec3 < int32_t >, uint32_t, uint32_t > >, std::vector< std::tuple< Geometry::_Vec3 < int32_t >, std::array< uint32_t, 64 > > > > serializationData_t
   
typedef Geometry::VoxelStorage < uint32_t, 2, int32_t, uint32_t > simpleVoxelStorage_t

Functions

   
   
serializationData_t loadVoxels(std::istream & input)
   
serializationData_t loadVoxels(const Util::FileName & filename)
   
void saveVoxels(std::ostream & output, const serializationData_t & void)
   
void saveVoxels(const Util::FileName & filename, const serializationData_t & void)
   
Util::Reference < Rendering::Mesh > generateMesh(const simpleVoxelStorage_t & void, const Geometry::_Box < int32_t > & boundary)

Documentation

typedef
MinSG::VoxelWorld::serializationData_t

public
 
 
typedef std::pair< std::vector< std::tuple< Geometry::_Vec3 < int32_t >, uint32_t, uint32_t > >, std::vector< std::tuple< Geometry::_Vec3 < int32_t >, std::array< uint32_t, 64 > > > > serializationData_t

.vox (Voxel File Format)

Fileformat: binary little endian

VOX-File ::= Header (char[4] “vox”+chr(13) ), uint32 version (currently 0x01), DataBlock *, EndMarker (uint32 0xFFFFFFFF)

DataBlock ::= uint32 dataType, uint32 dataSizenr of bytes to be jumped to skip the block (not including dataType and blockSize value), uint8 data[dataSize]

DataBlock ::= AreaBlock

DataBlock ::= 4x4LeafsBlock

AreaBlock ::= AreaBlock-dataType (uint32 0x56000000), uint32 dataSize, uint32 numberOfAreas [int32 x,int32 y,int32 z, uint32_t sideLength, uint32_t value]*

4x4x4LeafsBlock ::= AreaBlock-dataType (uint32 0x56000001), uint32 dataSize, uint32 numberOfLeafBlocks [int32 x,int32 y,int32 z, uint8_t nrOfRuns, [uint32_t value,uint8_t RunLength]* ]*

Defined in MinSG/Ext/VoxelWorld/StreamerVOX.h:62


typedef
MinSG::VoxelWorld::simpleVoxelStorage_t

public
 
 
typedef Geometry::VoxelStorage < uint32_t, 2, int32_t, uint32_t > simpleVoxelStorage_t

Defined in MinSG/Ext/VoxelWorld/VoxelWorld.h:30


function
MinSG::VoxelWorld::loadVoxels

public
     
     
serializationData_t loadVoxels( std::istream & input )

Defined in MinSG/Ext/VoxelWorld/StreamerVOX.h:64


function
MinSG::VoxelWorld::loadVoxels

public
     
     
serializationData_t loadVoxels( const Util::FileName & filename )

Defined in MinSG/Ext/VoxelWorld/StreamerVOX.h:65


function
MinSG::VoxelWorld::saveVoxels

public
     
     
void saveVoxels( std::ostream & output,
  const serializationData_t & void
)    

Defined in MinSG/Ext/VoxelWorld/StreamerVOX.h:66


function
MinSG::VoxelWorld::saveVoxels

public
     
     
void saveVoxels( const Util::FileName & filename,
  const serializationData_t & void
)    

Defined in MinSG/Ext/VoxelWorld/StreamerVOX.h:67


function
MinSG::VoxelWorld::generateMesh

public
     
     
Util::Reference < Rendering::Mesh > generateMesh( const simpleVoxelStorage_t & void,
  const Geometry::_Box < int32_t > & boundary
)    

Defined in MinSG/Ext/VoxelWorld/VoxelWorld.h:32