RSMesh
1.0.0
一个曲面重构的系统,输入为点云,输出为obj,stl等主流格式的网格文件,使用的方法为径向基函数插值,采取了并行优化、Intel-MKL等优化措施,支持百万级别的点云
载入中...
搜索中...
未找到
include
isosurface
rbf_field_function_25d.h
1
//
2
// Created by RainSure on 2024/2/23.
3
//
4
5
#ifndef RSMESH_RBF_FIELD_FUNCTION_25D_H
6
#define RSMESH_RBF_FIELD_FUNCTION_25D_H
7
8
#include "field_function.h"
9
#include "geometry/point3d.h"
10
#include "interpolant.h"
11
#include "types.h"
12
13
namespace
rsmesh::isosurface
{
14
class
rbf_field_function_25d
:
public
field_function
{
15
public
:
16
explicit
rbf_field_function_25d
(
interpolant
&
interpolant
) : interpolant_(
interpolant
) {}
17
18
valuesd operator()(
const
geometry::points3d
& points)
const override
{
19
geometry::points3d
points_2d(points);
20
points_2d.col(2).array() = 0.0;
21
22
return
points.col(2) - interpolant_.evaluate_impl(points_2d);
23
}
24
25
void
set_evaluation_bbox(
const
geometry::bbox3d
& bbox)
override
{
26
interpolant_.set_evaluation_bbox_impl(bbox);
27
}
28
29
private
:
30
interpolant
& interpolant_;
31
};
32
}
33
34
#endif
//RSMESH_RBF_FIELD_FUNCTION_25D_H
rsmesh::geometry::bbox3d
Definition
bbox3d.h:14
rsmesh::interpolant
Definition
interpolant.h:25
rsmesh::isosurface::field_function
Definition
field_function.h:13
rsmesh::isosurface::rbf_field_function_25d
Definition
rbf_field_function_25d.h:14
rsmesh::geometry::points3d
vectors3d points3d
3维点的集合
Definition
point3d.h:48
rsmesh::isosurface
该命名空间下主要定义了等值面提取相关的类和函数
制作者
1.10.0