@@ -113,11 +113,7 @@ void FilterCurvature::filter(mp2p_icp::metric_map_t& inOut) const
113113 const auto & ys = pc.getPointsBufferRef_y ();
114114 const auto & zs = pc.getPointsBufferRef_z ();
115115
116- #if MRPT_VERSION >= 0x020f00 // 2.15.0
117116 const auto * ptrRings = pc.getPointsBufferRef_float_field (" ring" );
118- #else
119- const auto * ptrRings = pc.getPointsBufferRef_ring ();
120- #endif
121117 if (!ptrRings || ptrRings->empty ())
122118 {
123119 THROW_EXCEPTION_FMT (
@@ -131,7 +127,6 @@ void FilterCurvature::filter(mp2p_icp::metric_map_t& inOut) const
131127
132128 const size_t N = xs.size ();
133129
134- #if MRPT_VERSION >= 0x020f00 // 2.15.0
135130 mrpt::maps::CPointsMap::InsertCtx ctxLarger;
136131 if (outPcLarger)
137132 {
@@ -150,7 +145,6 @@ void FilterCurvature::filter(mp2p_icp::metric_map_t& inOut) const
150145 outPcOther->registerPointFieldsFrom (pc);
151146 ctxOther = outPcOther->prepareForInsertPointsFrom (pc);
152147 }
153- #endif
154148
155149 const uint16_t nRings = 1 + *std::max_element (ringPerPt.begin (), ringPerPt.end ());
156150
@@ -230,13 +224,7 @@ void FilterCurvature::filter(mp2p_icp::metric_map_t& inOut) const
230224 counterLarger++;
231225 if (outPcLarger)
232226 {
233- #if MRPT_VERSION >= 0x020f03 // 2.15.3
234227 outPcLarger->insertPointFrom (i, ctxLarger);
235- #elif MRPT_VERSION >= 0x020f00 // 2.15.0
236- outPcLarger->insertPointFrom (pc, i, ctxLarger);
237- #else
238- outPcLarger->insertPointFrom (pc, i);
239- #endif
240228 }
241229 }
242230 continue ;
@@ -263,26 +251,14 @@ void FilterCurvature::filter(mp2p_icp::metric_map_t& inOut) const
263251 counterLarger++;
264252 if (outPcLarger)
265253 {
266- #if MRPT_VERSION >= 0x020f03 // 2.15.3
267254 outPcLarger->insertPointFrom (i, ctxLarger);
268- #elif MRPT_VERSION >= 0x020f00 // 2.15.0
269- outPcLarger->insertPointFrom (pc, i, ctxLarger);
270- #else
271- outPcLarger->insertPointFrom (pc, i);
272- #endif
273255 }
274256 }
275257 else
276258 {
277259 if (outPcOther)
278260 {
279- #if MRPT_VERSION >= 0x020f03 // 2.15.3
280261 outPcOther->insertPointFrom (i, ctxOther);
281- #elif MRPT_VERSION >= 0x020f00 // 2.15.0
282- outPcOther->insertPointFrom (pc, i, ctxOther);
283- #else
284- outPcOther->insertPointFrom (pc, i);
285- #endif
286262 }
287263 }
288264 continue ;
@@ -300,27 +276,15 @@ void FilterCurvature::filter(mp2p_icp::metric_map_t& inOut) const
300276 counterLarger++;
301277 if (outPcLarger)
302278 {
303- #if MRPT_VERSION >= 0x020f03 // 2.15.3
304279 outPcLarger->insertPointFrom (i, ctxLarger);
305- #elif MRPT_VERSION >= 0x020f00 // 2.15.0
306- outPcLarger->insertPointFrom (pc, i, ctxLarger);
307- #else
308- outPcLarger->insertPointFrom (pc, i);
309- #endif
310280 }
311281 }
312282 else
313283 {
314284 counterLess++;
315285 if (outPcSmaller)
316286 {
317- #if MRPT_VERSION >= 0x020f03 // 2.15.3
318287 outPcSmaller->insertPointFrom (i, ctxSmaller);
319- #elif MRPT_VERSION >= 0x020f00 // 2.15.0
320- outPcSmaller->insertPointFrom (pc, i, ctxSmaller);
321- #else
322- outPcSmaller->insertPointFrom (pc, i);
323- #endif
324288 }
325289 }
326290 }
0 commit comments