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> >;
Base class for 3D clipper objects.
shared_ptr< const Clipper3D< PointT > > ConstPtr
virtual ~Clipper3D() noexcept=default
virtual destructor.
virtual bool clipLineSegment3D(PointT &pt1, PointT &pt2) const =0
interface to clip a line segment given by two end points.
shared_ptr< Clipper3D< PointT > > Ptr
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 bool clipPoint3D(const PointT &point) const =0
interface to clip a single point
virtual Clipper3D< PointT > * clone() const =0
polymorphic method to clone the underlying clipper with its parameters.
virtual void clipPointCloud3D(const pcl::PointCloud< PointT > &cloud_in, Indices &clipped, const Indices &indices=Indices()) const =0
interface to clip a point cloud
PointCloud represents the base class in PCL for storing collections of 3D points.
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Defines functions, macros and traits for allocating and using memory.
IndicesAllocator<> Indices
Type used for indices in PCL.
Defines all the PCL and non-PCL macros used.
A point structure representing Euclidean xyz coordinates, and the RGB color.