3 #include <DGtal/base/Common.h>
4 #include <DGtal/math/linalg/EigenSupport.h>
8 typedef DGtal::Z3i::Point
Point;
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;
37 typedef DGtal::Z3i::Point
Point;
48 const Vector vector_(point[0], point[1], point[2]);
52 if (projected.norm() == 0)
return false;
64 typedef DGtal::Z3i::Point
Point;
82 typedef DGtal::Z3i::Point
Point;
103 template <
typename ImageType>
106 typedef typename ImageType::Point
Point;
118 if (!
image->domain().isInside(point))
return false;
119 return (*
image)(point) > 0;
137 return normal.dot(point) <= 0;
CapsuleShape(const double &radius_, const double &length_, const RealPoint &direction_)
bool operator()(const Point &point) const
DGtal::Z3i::RealPoint RealPoint
ImageShape(const ImageType *image_, const Point &shift_)
bool operator()(const Point &point_) const
DGtal::Z3i::RealPoint RealPoint
PlaneShape(const RealPoint &normal_)
bool operator()(const Point &point) const
bool operator()(const Point &point) const
RoundedCubeShape(const Matrix &transform_, const double &size_, const double &radius_)
DGtal::Z3i::RealPoint RealPoint
SphereShape(const double &radius_, const RealPoint ¢er_)
bool operator()(const Point &point) const
bool operator()(const Point &point) const
TorusShape(const Matrix &transform_, const double &radius_large_, const double &radius_small_)