RSMesh 1.0.0
一个曲面重构的系统,输入为点云,输出为obj,stl等主流格式的网格文件,使用的方法为径向基函数插值,采取了并行优化、Intel-MKL等优化措施,支持百万级别的点云
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
rsmesh::geometry::bbox3d类 参考

Public 成员函数

 bbox3d ()
 bbox3d类的默认构造函数
 
 bbox3d (const point3d &min, const point3d &max)
 bbox3d类的构造函数,根据传入的左下角的点和右上角的点来构造包围盒
 
bool operator== (const bbox3d &rhs) const
 重载了==运算符,用于判断两个bbox3d是否相等
 
point3d center () const
 返回包围盒的中心点
 
bool contains (const point3d &p) const
 
bbox3d convex_hull (const bbox3d &other) const
 
const point3dmax () const
 
const point3dmin () const
 
vector3d size () const
 
bbox3d transform (const linear_transformation3d &t) const
 
bbox3d union_hull (const bbox3d &other) const
 

静态 Public 成员函数

template<class InputIterator >
static bbox3d from_points (InputIterator points_begin, InputIterator points_end)
 
template<class Derived >
static bbox3d from_points (const Eigen::MatrixBase< Derived > &points)
 

详细描述

在文件 bbox3d.h14 行定义.

构造及析构函数说明

◆ bbox3d() [1/2]

rsmesh::geometry::bbox3d::bbox3d ( )

bbox3d类的默认构造函数

主要实现逻辑是将min_初始化为无穷大,max_初始化为负无穷大

在文件 bbox3d.cpp16 行定义.

◆ bbox3d() [2/2]

rsmesh::geometry::bbox3d::bbox3d ( const point3d & min,
const point3d & max )

bbox3d类的构造函数,根据传入的左下角的点和右上角的点来构造包围盒

参数
min传入的包围盒的左下角点
max传入的包围盒的右上角点

在文件 bbox3d.cpp24 行定义.

成员函数说明

◆ center()

point3d rsmesh::geometry::bbox3d::center ( ) const

返回包围盒的中心点

返回

在文件 bbox3d.cpp39 行定义.

◆ contains()

bool rsmesh::geometry::bbox3d::contains ( const point3d & p) const

判断包围盒是否包含某个点

参数
p判断的点
返回

在文件 bbox3d.cpp48 行定义.

◆ convex_hull()

bbox3d rsmesh::geometry::bbox3d::convex_hull ( const bbox3d & other) const

计算该包围盒和另一个包围盒的凸包

参数
other
返回

在文件 bbox3d.cpp60 行定义.

◆ from_points() [1/2]

template<class Derived >
static bbox3d rsmesh::geometry::bbox3d::from_points ( const Eigen::MatrixBase< Derived > & points)
inlinestatic

在文件 bbox3d.h65 行定义.

◆ from_points() [2/2]

template<class InputIterator >
static bbox3d rsmesh::geometry::bbox3d::from_points ( InputIterator points_begin,
InputIterator points_end )
inlinestatic

在文件 bbox3d.h42 行定义.

◆ max()

const point3d & rsmesh::geometry::bbox3d::max ( ) const

在文件 bbox3d.cpp64 行定义.

◆ min()

const point3d & rsmesh::geometry::bbox3d::min ( ) const

在文件 bbox3d.cpp68 行定义.

◆ operator==()

bool rsmesh::geometry::bbox3d::operator== ( const bbox3d & rhs) const

重载了==运算符,用于判断两个bbox3d是否相等

参数
rhs比较的另一个bbox3d
返回

在文件 bbox3d.cpp31 行定义.

◆ size()

vector3d rsmesh::geometry::bbox3d::size ( ) const

在文件 bbox3d.cpp72 行定义.

◆ transform()

bbox3d rsmesh::geometry::bbox3d::transform ( const linear_transformation3d & t) const

在文件 bbox3d.cpp76 行定义.

◆ union_hull()

bbox3d rsmesh::geometry::bbox3d::union_hull ( const bbox3d & other) const

在文件 bbox3d.cpp103 行定义.


该类的文档由以下文件生成: