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