e276ce5a64
P2 B-Rep建模: - brep: fillet/chamfer/shell 完整实现 - brep: box/cylinder/sphere 实体工厂 - brep: extrude/revolve/sweep/loft 建模操作 P3 数据交换: - foundation: PLY 读写(ASCII+二进制) - foundation: glTF 2.0 导出(JSON+bin) P4 高级算法/杀手功能: - sketch: 2D 草图约束求解器(Newton-Raphson, 9种约束类型) - core: ICP 点云配准(SVD最优变换+KD-Tree加速) 新增模块: vde_sketch
16 lines
440 B
C++
16 lines
440 B
C++
#pragma once
|
|
#include "vde/core/point.h"
|
|
#include "vde/mesh/halfedge_mesh.h"
|
|
#include <string>
|
|
|
|
namespace vde::foundation {
|
|
|
|
/// Read PLY file (Stanford Polygon Format)
|
|
/// Supports ASCII and binary little-endian, vertex + face elements
|
|
mesh::HalfedgeMesh read_ply(const std::string& filepath);
|
|
|
|
/// Write PLY file (ASCII format)
|
|
void write_ply(const std::string& filepath, const mesh::HalfedgeMesh& mesh);
|
|
|
|
} // namespace vde::foundation
|