Ponca  7b3f8ad3fde25a027e6452783ccee143798a71b8
Point Cloud Analysis library
Loading...
Searching...
No Matches
basketsdiff.h
1/*
2 This Source Code Form is subject to the terms of the Mozilla Public
3 License, v. 2.0. If a copy of the MPL was not distributed with this
4 file, You can obtain one at http://mozilla.org/MPL/2.0/.
5*/
6
7// Define the list of basket in this file:
8// - _S: Scalar type
9// - _D: Dimension
10// - _P: Point type
11// - _NF: Neighbor filter
12//
13// You may filter by dimension, but not by "type" as the
14// preprocessor does not allows this. You may however define
15// a custom macros and then check for this definition. This
16// is what is done with '_Normal'. Please, do not forget to
17// add them to the following list:
18//
19// Type information macros:
20// - _Normal: Defined when point provides normals
21//
22// Wrap the type within the _PONCA_BASKET_DIFF_X call:
23// - Name of the basket
24// - Description
25// - Actual basket class
26//
27// The name and description might be used to generate mappings
28// or bindings to these class
29//
30// The _PONCA_BASKET_DIFF_X macro will be defined elsewhere to generate
31// the desired code
32#if _D == 3
33
34_PONCA_BASKET_DIFF_X("CovariancePlaneCurvatureEstimator", "",
35 BasketDiff<Basket<_P, _NF, CovariancePlaneFit>, _DT, CovariancePlaneDer,
36 NormalDerivativeWeingartenEstimator, WeingartenCurvatureEstimatorDer>)
37# if defined(_Normal) && defined(_ScaleDer)
38_PONCA_BASKET_DIFF_X("OrientedSphereCurvatureEstimator", "",
39 BasketDiff<Basket<_P, _NF, OrientedSphereFit, GLSParam>, _DT, OrientedSphereDer, GLSDer,
40 NormalDerivativeWeingartenEstimator, WeingartenCurvatureEstimatorDer>)
41_PONCA_BASKET_DIFF_X("UnorientedSphereCurvatureEstimator", "",
42 BasketDiff<Basket<_P, _NF, UnorientedSphereFit, GLSParam>, _DT, UnorientedSphereDer, GLSDer,
43 NormalDerivativeWeingartenEstimator, WeingartenCurvatureEstimatorDer>)
44_PONCA_BASKET_DIFF_X("ASOCurvatureEstimator", "",
45 BasketDiff<Basket<_P, _NF, OrientedSphereFit, GLSParam>, _DT, OrientedSphereDer, GLSDer,
46 MlsSphereFitDer, NormalDerivativeWeingartenEstimator, WeingartenCurvatureEstimatorDer>)
47# endif
48#endif
49