score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
Ply.hpp
1
#pragma once
2
#include <Threedim/TinyObj.hpp>
3
4
namespace
Threedim
5
{
6
std::vector<mesh> PlyFromFile(std::string_view filename, float_vec& data);
7
26
struct
GaussianSplatData
27
{
28
float_vec buffer;
29
uint32_t splatCount{};
30
31
static
constexpr
uint32_t floatsPerSplat = 64;
32
static
constexpr
uint32_t bytesPerSplat = floatsPerSplat *
sizeof
(float);
// 256
33
static
constexpr
uint32_t maxSHRestCoeffs = 45;
34
uint32_t shRestCount{};
// Actual number of f_rest coefficients found (0, 9, 24, or 45)
35
};
36
37
GaussianSplatData
GaussianSplatsFromPly(std::string_view filename);
38
}
Threedim::GaussianSplatData
Definition
Ply.hpp:27