Encodes a lvr model into a draco compressed file. More...
Go to the source code of this file.
Namespaces | |
lvr2 | |
Functions | |
std::unique_ptr< draco::EncoderBuffer > | lvr2::encodeDraco (ModelPtr modelPtr, draco::EncodedGeometryType type) |
encodes Model to draco EncodeBuffer which contents can be written into a file More... | |
std::unique_ptr< draco::EncoderBuffer > | lvr2::encodeMesh (ModelPtr modelPtr, draco::Encoder &encoder) |
transfers a mesh of a modelPtr to a draco EncoderBuffer that can be written into a file More... | |
std::unique_ptr< draco::EncoderBuffer > | lvr2::encodePointCloud (ModelPtr modelPtr, draco::Encoder &encoder) |
transfers a pointcloud of a modelPtr to a draco EncoderBuffer that can be written into a file More... | |
template<typename ArrayType , typename DataType , int size> | |
int | lvr2::saveAttributeToDraco (ArrayType array, draco::PointCloud *drcPointcloud, draco::GeometryAttribute::Type geometryType, draco::DataType dracoDataType, size_t numPoints, bool normalized) |
adds the given data to a new attribute and attaches the attribute to the pointcloud More... | |
void | lvr2::saveTextures (std::vector< int32_t > *textureValue, textureArr textures, size_t numTextures) |
pushes the given textures in a int32_t vector to store it in the draco structure More... | |
void | lvr2::saveTextures (std::vector< int32_t > *textureValue, vector< Texture > &textures) |
pushes the given textures in a int32_t vector to store it in the draco structure More... | |
Encodes a lvr model into a draco compressed file.
Supports geometrys compressed using draco https://github.com/google/draco
Definition in file DracoEncoder.cpp.