RSMesh 1.0.0
一个曲面重构的系统,输入为点云,输出为obj,stl等主流格式的网格文件,使用的方法为径向基函数插值,采取了并行优化、Intel-MKL等优化措施,支持百万级别的点云
载入中...
搜索中...
未找到
sphere3d.h
1//
2// Created by RainSure on 2023/10/25.
3//
4
5#ifndef RSMESH_SPHERE3D_H
6#define RSMESH_SPHERE3D_H
7
8#include <utility>
9
10#include "point3d.h"
11
12namespace rsmesh {
13 namespace geometry {
14
15 class sphere3d {
16 public:
17 sphere3d() : center_(point3d::Zero()) {
18
19 }
20 sphere3d(point3d center, const double radius) : center_(std::move(center)), radius_(radius) {
21
22 }
23
24 bool operator==(const sphere3d& rhs) const {
25 return center_ == rhs.center_ and radius_ == rhs.radius_;
26 }
27
28 [[nodiscard]] const point3d& center() const {
29 return center_;
30 }
31
32 [[nodiscard]] const double radius() const {
33 return radius_;
34 }
35
36
37 private:
38 const point3d center_;
39 const double radius_{1.0};
40 };
41
42 } // rsmesh
43} // geometry
44
45#endif //RSMESH_SPHERE3D_H
vector3d point3d
3维点
Definition point3d.h:39
本系统的主命名空间,包含了common, examples, fmm, geometry, numeric, point_cloud等子命名空间