-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix_tests
- Loading branch information
Showing
21 changed files
with
209 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,32 @@ | ||
#include PONCA_MULTIARCH_INCLUDE_STD(cmath) //abs | ||
|
||
namespace Ponca { | ||
template<class DataPoint, class _WFunctor, int DiffType, typename T> | ||
void | ||
CurvatureEstimatorBase<DataPoint, _WFunctor, DiffType, T>::init(const VectorType &_evalPos) { | ||
Base::init(_evalPos); | ||
m_k1 = 0; | ||
m_k2 = 0; | ||
m_v1 = VectorType::Zero(); | ||
m_v2 = VectorType::Zero(); | ||
m_kmin = 0; | ||
m_kmax = 0; | ||
m_vmin = VectorType::Zero(); | ||
m_vmax = VectorType::Zero(); | ||
m_isValid = false; | ||
} | ||
|
||
|
||
template<class DataPoint, class _WFunctor, int DiffType, typename T> | ||
void | ||
CurvatureEstimatorBase<DataPoint, _WFunctor, DiffType, T>::setCurvatureValues( | ||
Scalar k1, Scalar k2, const VectorType &v1, const VectorType &v2) { | ||
PONCA_MULTIARCH_STD_MATH(abs) | ||
|
||
if (abs(k1) < abs(k2)) { | ||
m_k1 = k2; | ||
m_k2 = k1; | ||
m_v1 = v2; | ||
m_v2 = v1; | ||
Scalar kmin, Scalar kmax, const VectorType &vmin, const VectorType &vmax) { | ||
if(kmin <= kmax) { | ||
m_kmin = kmin; | ||
m_kmax = kmax; | ||
m_vmin = vmin; | ||
m_vmax = vmax; | ||
} else { | ||
m_k1 = k1; | ||
m_k2 = k2; | ||
m_v1 = v1; | ||
m_v2 = v2; | ||
m_kmin = kmax; | ||
m_kmax = kmin; | ||
m_vmin = vmax; | ||
m_vmax = vmin; | ||
} | ||
|
||
m_isValid = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
|
||
/*! | ||
\page example_cxx_neighbor_search Ponca::KdTree neighbor searches | ||
|
||
This is an example of how to use Ponca::KdTree to perform nearest, k-nearest and range neighbor search. | ||
|
||
\include cpp/ponca_neighbor_search.cpp | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.