40 #include <pcl/memory.h>
41 #include <pcl/pcl_macros.h>
42 #include <pcl/point_cloud.h>
44 #include <Eigen/StdVector>
53 template<
typename Po
intT>
57 using Ptr = shared_ptr<Clipper3D<PointT> >;
58 using ConstPtr = shared_ptr<const Clipper3D<PointT> >;
96 clipPlanarPolygon3D (
const std::vector<
PointT, Eigen::aligned_allocator<PointT> >& polygon, std::vector<
PointT, Eigen::aligned_allocator<PointT> >& clipped_polygon)
const = 0;
shared_ptr< Clipper3D< PointT > > Ptr
virtual bool clipPoint3D(const PointT &point) const =0
interface to clip a single point
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
virtual void clipPlanarPolygon3D(std::vector< PointT, Eigen::aligned_allocator< PointT > > &polygon) const =0
interface to clip a planar polygon given by an ordered list of points
virtual Clipper3D< PointT > * clone() const =0
polymorphic method to clone the underlying clipper with its parameters.
PointCloud represents the base class in PCL for storing collections of 3D points. ...
shared_ptr< const Clipper3D< PointT > > ConstPtr
A point structure representing Euclidean xyz coordinates, and the RGB color.
virtual void clipPointCloud3D(const pcl::PointCloud< PointT > &cloud_in, std::vector< int > &clipped, const std::vector< int > &indices=std::vector< int >()) const =0
interface to clip a point cloud
virtual ~Clipper3D() noexcept
virtual destructor.
virtual bool clipLineSegment3D(PointT &pt1, PointT &pt2) const =0
interface to clip a line segment given by two end points.
Base class for 3D clipper objects.