Function lvr2::encodeDraco

Function Documentation

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

Parameters:
  • modelptr – modelPtr to Model that shall be encoded

  • type – GeometryType of Geometry to be encoded

Returns:

unique_ptr pointing to a EncoderBuffer that can be used to write a draco file