static mesh::HalfedgeMesh read_file(const std::string &path)
从文件读取并反序列化
static bool write_file(const std::string &path, const mesh::HalfedgeMesh &mesh)
序列化并写入文件
static std::vector< uint8_t > serialize(const mesh::HalfedgeMesh &mesh)
序列化网格到二进制缓冲区
static mesh::HalfedgeMesh deserialize(const std::vector< uint8_t > &data)
从二进制缓冲区反序列化网格
constexpr uint32_t VDE_FORMAT_VERSION
VDE 二进制格式当前版本号
constexpr uint64_t VDE_MAGIC
VDE 二进制文件魔数:"VDEGEOM\0"
uint32_t vertex_count
顶点数量
std::vector< int32_t > face_indices
面顶点索引,扁平排列:v0_0 v0_1 v0_2 v1_0 v1_1 v1_2 ...
std::vector< int32_t > face_valence
每面的顶点数(当前固定为 3,即纯三角形网格)
std::vector< double > vertices
顶点坐标,扁平排列:x0 y0 z0 x1 y1 z1 ...