diff --git a/surface/include/pcl/surface/impl/mls.hpp b/surface/include/pcl/surface/impl/mls.hpp index c6706aaf2fd..017b54c739f 100644 --- a/surface/include/pcl/surface/impl/mls.hpp +++ b/surface/include/pcl/surface/impl/mls.hpp @@ -534,7 +534,7 @@ pcl::MLSResult::getPolynomialPartialDerivative (const double u, const double v) } Eigen::Vector2f -pcl::MLSResult::calculatePrincipleCurvatures (const double u, const double v) const +pcl::MLSResult::calculatePrincipalCurvatures (const double u, const double v) const { Eigen::Vector2f k (1e-5, 1e-5); @@ -559,7 +559,7 @@ pcl::MLSResult::calculatePrincipleCurvatures (const double u, const double v) co } else { - PCL_ERROR ("No Polynomial fit data, unable to calculate the principle curvatures!\n"); + PCL_ERROR ("No Polynomial fit data, unable to calculate the principal curvatures!\n"); } return (k); diff --git a/surface/include/pcl/surface/mls.h b/surface/include/pcl/surface/mls.h index ef480bb7bb6..4e7f3944b9f 100644 --- a/surface/include/pcl/surface/mls.h +++ b/surface/include/pcl/surface/mls.h @@ -135,14 +135,24 @@ namespace pcl inline PolynomialPartialDerivative getPolynomialPartialDerivative (const double u, const double v) const; - /** \brief Calculate the principle curvatures using the polynomial surface. + /** \brief Calculate the principal curvatures using the polynomial surface. * \param[in] u The u-coordinate of the point in local MLS frame. * \param[in] v The v-coordinate of the point in local MLS frame. - * \return The principle curvature [k1, k2] at the provided uv coordinates. - * \note If an error occurs the MLS_MINIMUM_PRINCIPLE_CURVATURE is returned. + * \return The principal curvature [k1, k2] at the provided uv coordinates. + * \note If an error occurs then 1e-5 is returned. */ + Eigen::Vector2f + calculatePrincipalCurvatures (const double u, const double v) const; + + /** \brief Calculate the principal curvatures using the polynomial surface. + * \param[in] u The u-coordinate of the point in local MLS frame. + * \param[in] v The v-coordinate of the point in local MLS frame. + * \return The principal curvature [k1, k2] at the provided ub coordinates. + * \note If an error occurs then 1e-5 is returned. + */ + PCL_DEPRECATED(1, 15, "use calculatePrincipalCurvatures() instead") inline Eigen::Vector2f - calculatePrincipleCurvatures (const double u, const double v) const; + calculatePrincipleCurvatures (const double u, const double v) const { return calculatePrincipalCurvatures(u, v); }; /** \brief Project a point orthogonal to the polynomial surface. * \param[in] u The u-coordinate of the point in local MLS frame.