v0.1.0: 初始工程骨架 — 7模块 40头文件 32源文件 17文档 Apache-2.0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user