#include <estimators/volSurfaceRegularization-details/shape.h>
|
typedef DGtal::Z3i::Point | Point |
|
typedef Eigen::Vector3d | Vector |
|
typedef Eigen::Matrix3d | Matrix |
|
Definition at line 6 of file shape.h.
◆ Matrix
◆ Point
◆ Vector
◆ RoundedCubeShape()
RoundedCubeShape::RoundedCubeShape |
( |
const Matrix & |
transform_, |
|
|
const double & |
size_, |
|
|
const double & |
radius_ |
|
) |
| |
|
inline |
◆ operator()()
bool RoundedCubeShape::operator() |
( |
const Point & |
point | ) |
const |
|
inline |
Definition at line 17 of file shape.h.
19 const Vector vector_(point[0], point[1], point[2]);
21 vector = vector.cwiseAbs();
22 if (vector.maxCoeff() <=
size-
radius)
return true;
24 for (
int kk=0; kk<projected.size(); kk++)
27 return (vector-projected).norm() <=
radius;
References radius, size, and transform.
◆ radius
double RoundedCubeShape::radius |
◆ size
double RoundedCubeShape::size |
◆ transform
Matrix RoundedCubeShape::transform |
The documentation for this struct was generated from the following file: