RSMesh 1.0.0
一个曲面重构的系统,输入为点云,输出为obj,stl等主流格式的网格文件,使用的方法为径向基函数插值,采取了并行优化、Intel-MKL等优化措施,支持百万级别的点云
载入中...
搜索中...
未找到
main.cpp
1#include <string>
2#include <iostream>
3#include "examples/generate_sdf.h"
4#include "examples/reconstruct_surface.h"
5int main(int argc, char *argv[]) {
6// rsmesh::examples::generate_sdf(rsmesh::examples::SdfParameters{
7// .input = R"(E:\Code\Cpp_project\RSMesh\data\points_with_normals\bunny_normals.csv)",
8// .output = R"(E:\Code\Cpp_project\RSMesh\data\sdf\bunny_sdf1.csv)",
9// .max_offset = 0.01,
10// .min_offset = 0.0,
11// .sdf_multiplication = 2.0
12// });
13 rsmesh::examples::reconstruct_surface(rsmesh::examples::ReconstructionParameters{
14 .input = R"(E:\Code\Cpp_project\RSMesh\data\sdf\Block_sdf.csv)",
15 .output = R"(E:\Code\Cpp_project\RSMesh\data\surfaces\Block.obj)",
16 .rbf_name = "biharmonic3d",
17 .absolute_tolerance = 1e-6,
18 .bbox = rsmesh::geometry::bbox3d({-20.0, -20.0, -20.0}, {20.0, 20.0, 20.0}),
19 .mesh_resolution = 0.1,
20 .rbf_parameters = {1.0},
21 .aniso = rsmesh::geometry::linear_transformation3d::Identity(),
22 .min_distance = 1e-10,
23 .nugget = 0.0,
24 .poly_degree = 0,
25 .max_iterations = 30,
26 .inequality = false,
27 .reduce = false
28 });
29
30 return 0;
31}