v0.1.0: 初始工程骨架 — 7模块 40头文件 32源文件 17文档 Apache-2.0

This commit is contained in:
ViewDesignEngine
2026-07-23 05:27:51 +00:00
commit 02d0520aa5
133 changed files with 5350 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <iostream>
#include "vde/mesh/halfedge_mesh.h"
int main() {
using namespace vde::mesh;
HalfedgeMesh mesh;
mesh.build_from_triangles(
{{0,0,0},{1,0,0},{0,1,0},{1,1,0}},
{{0,1,2},{1,3,2}}
);
std::cout << "V: " << mesh.num_vertices()
<< " F: " << mesh.num_faces()
<< " E: " << mesh.num_edges() << "\n";
auto b = mesh.bounds();
std::cout << "Bounds: (" << b.min().transpose() << ") - ("
<< b.max().transpose() << ")\n";
return 0;
}