24 template <
typename Fit>
25 PONCA_MULTIARCH
typename Fit::VectorType
project(
const Fit&
_f,
const typename Fit::VectorType&
_pos)
const
33 template <
typename Fit>
34 PONCA_MULTIARCH
typename Fit::VectorType
operator()(
const Fit&
_f,
const typename Fit::VectorType&
_pos)
const
61 template <
typename Fit>
62 PONCA_MULTIARCH
typename Fit::VectorType
project(
const Fit&
_f,
const typename Fit::VectorType&
_pos)
const
64 PONCA_MULTIARCH_STD_MATH(
min)
65 using VectorType =
typename Fit::VectorType;
66 using Scalar =
typename Fit::Scalar;
69 VectorType
dir =
_f.primitiveGradient(
_pos);
70 Scalar
ilg = Scalar(1.) /
dir.norm();
76 for (
unsigned int i = 0;
i < nbIter; ++
i)
89 template <
typename Fit>
90 PONCA_MULTIARCH
typename Fit::VectorType
operator()(
const Fit& f,
const typename Fit::VectorType& pos)
const
Aggregator class used to declare specialized structures using CRTP.
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Project a point using the primitive projection operator.
Fit::VectorType project(const Fit &_f, const typename Fit::VectorType &_pos) const
Project a point using the primitive projection operator.
Fit::VectorType operator()(const Fit &_f, const typename Fit::VectorType &_pos) const
Project a point using the primitive projection operator.
Project a point using the gradinet of the sdf.
Fit::VectorType operator()(const Fit &f, const typename Fit::VectorType &pos) const
Project a point using the gradinet of the sdf.
Fit::VectorType project(const Fit &_f, const typename Fit::VectorType &_pos) const
Project a point using the gradinet of the sdf.