|
ViewDesignEngine
3.1.0
高性能 CAD 计算几何引擎
|
OBJ 文件解析结果数据结构 更多...
#include <io_obj.h>
Public 成员函数 | |
| bool | has_texcoords () const |
| 是否有纹理坐标数据 更多... | |
Public 属性 | |
| std::vector< Point3D > | vertices |
| 顶点位置数组 更多... | |
| std::vector< Point2D > | texcoords |
| 纹理坐标数组(可能为空) 更多... | |
| std::vector< Vector3D > | normals |
| 顶点法线数组(可能为空) 更多... | |
| std::vector< std::vector< int > > | faces |
| 每个面的顶点索引列表(0-based) 更多... | |
| std::vector< std::vector< int > > | face_texcoords |
| 每个面的纹理坐标索引列表(0-based) 更多... | |
| std::vector< std::vector< int > > | face_normals |
| 每个面的法线索引列表(0-based) 更多... | |
| std::vector< std::string > | face_materials |
| 每个面对应的材质名称 更多... | |
OBJ 文件解析结果数据结构
存储从 Wavefront OBJ 文件读取的完整几何数据, 包括顶点位置、纹理坐标、法线、面信息和材质分组。
内部索引均为 0-based,与文件中的 1-based 索引不同。
|
inline |
| std::vector<std::string> vde::foundation::ObjMeshData::face_materials |
| std::vector<std::vector<int> > vde::foundation::ObjMeshData::face_normals |
| std::vector<std::vector<int> > vde::foundation::ObjMeshData::face_texcoords |
| std::vector<std::vector<int> > vde::foundation::ObjMeshData::faces |
| std::vector<Point2D> vde::foundation::ObjMeshData::texcoords |