ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎
vde::foundation::SerializedMesh结构体 参考

二进制序列化格式的网格数据结构 更多...

#include <serializer.h>

Public 属性

uint32_t vertex_count
 顶点数量 更多...
 
uint32_t face_count
 面数量 更多...
 
std::vector< double > vertices
 顶点坐标,扁平排列:x0 y0 z0 x1 y1 z1 ... 更多...
 
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,即纯三角形网格) 更多...
 

详细描述

二进制序列化格式的网格数据结构

存储网格的扁平表示,顶点坐标连续排列,面索引连续排列。 所有面均为三角形(face_valence 固定为 3)。

在文件 serializer.h17 行定义.

类成员变量说明

◆ face_count

uint32_t vde::foundation::SerializedMesh::face_count

面数量

在文件 serializer.h21 行定义.

◆ face_indices

std::vector<int32_t> vde::foundation::SerializedMesh::face_indices

面顶点索引,扁平排列:v0_0 v0_1 v0_2 v1_0 v1_1 v1_2 ...

在文件 serializer.h25 行定义.

◆ face_valence

std::vector<int32_t> vde::foundation::SerializedMesh::face_valence

每面的顶点数(当前固定为 3,即纯三角形网格)

在文件 serializer.h27 行定义.

◆ vertex_count

uint32_t vde::foundation::SerializedMesh::vertex_count

顶点数量

在文件 serializer.h19 行定义.

◆ vertices

std::vector<double> vde::foundation::SerializedMesh::vertices

顶点坐标,扁平排列:x0 y0 z0 x1 y1 z1 ...

在文件 serializer.h23 行定义.


该结构体的文档由以下文件生成: