MCPcopy Create free account
hub / github.com/LAStools/LAStools / ignore

Method ignore

LASlib/src/lasignore.cpp:340–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340BOOL LASignore::ignore(const LASpoint* point) const
341{
342 if (ignore_mask)
343 {
344 if (ignore_mask & LASIGNORE_CLASSIFICATIONS)
345 {
346 U32 classification = point->get_classification();
347 U32 byte = classification >> 5;
348 U32 rest = classification & 31;
349 if (ignore_classification_mask[byte] & (1u << rest))
350 {
351 return TRUE;
352 }
353 }
354 if (ignore_mask & LASIGNORE_RETURNS)
355 {
356 if ((ignore_mask & LASIGNORE_SINGLE) && point->is_single())
357 {
358 return TRUE;
359 }
360 if ((ignore_mask & LASIGNORE_FIRST_OF_MANY) && point->is_first_of_many())
361 {
362 return TRUE;
363 }
364 if ((ignore_mask & LASIGNORE_LAST_OF_MANY) && point->is_last_of_many())
365 {
366 return TRUE;
367 }
368 if ((ignore_mask & LASIGNORE_INTERMEDIATE) && point->is_intermediate())
369 {
370 return TRUE;
371 }
372 }
373 if (ignore_mask & LASIGNORE_FLAGS)
374 {
375 if ((ignore_mask & LASIGNORE_SYNTHETIC) && point->get_synthetic_flag())
376 {
377 return TRUE;
378 }
379 if ((ignore_mask & LASIGNORE_KEYPOINT) && point->get_keypoint_flag())
380 {
381 return TRUE;
382 }
383 if ((ignore_mask & LASIGNORE_WITHHELD) && point->get_withheld_flag())
384 {
385 return TRUE;
386 }
387 if ((ignore_mask & LASIGNORE_OVERLAP) && point->get_extended_overlap_flag())
388 {
389 return TRUE;
390 }
391 }
392 }
393 return FALSE;
394}
395
396LASignore::LASignore()
397{

Callers 1

ignore_pointFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected