41 #include <pcl/surface/processing.h>
55 using Ptr = shared_ptr<EarClipping>;
56 using ConstPtr = shared_ptr<const EarClipping>;
71 initCompute ()
override;
95 template <typename T = pcl::index_t, std::enable_if_t<!std::is_same<T, std::uint32_t>::value,
pcl::index_t> = 0>
96 PCL_DEPRECATED(1, 14,
"This method creates a useless copy of the vertices vector. Use area method which accepts Indices instead")
98 area (const std::vector<std::uint32_t>& vertices)
100 return area(
Indices (vertices.cbegin(), vertices.cend()));
110 isEar (
int u,
int v,
int w,
const Indices& vertices);
118 template <typename T = pcl::index_t, std::enable_if_t<!std::is_same<T, std::uint32_t>::value,
pcl::index_t> = 0>
119 PCL_DEPRECATED(1, 14,
"This method creates a useless copy of the vertices vector. Use isEar method which accepts Indices instead")
121 isEar (
int u,
int v,
int w, const std::vector<std::uint32_t>& vertices)
123 return isEar(u, v, w,
Indices (vertices.cbegin(), vertices.cend()));
133 isInsideTriangle (
const Eigen::Vector3f& u,
134 const Eigen::Vector3f& v,
135 const Eigen::Vector3f& w,
136 const Eigen::Vector3f& p);
143 crossProduct (
const Eigen::Vector2f& p1,
const Eigen::Vector2f& p2)
const
145 return p1[0]*p2[1] - p1[1]*p2[0];