Namespaces | Functions
DracoEncoder.cpp File Reference

Encodes a lvr model into a draco compressed file. More...

#include "lvr2/io/DracoEncoder.hpp"
#include <draco/metadata/geometry_metadata.h>
Include dependency graph for DracoEncoder.cpp:

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...
 

Detailed Description

Encodes a lvr model into a draco compressed file.

Supports geometrys compressed using draco https://github.com/google/draco

Author
Steffen Schupp (sschupp), sschu.nosp@m.pp@u.nosp@m.os.de
Malte kl. Piening (mklpiening), mklpi.nosp@m.enin.nosp@m.g@uos.nosp@m..de

Definition in file DracoEncoder.cpp.



lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:09