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

Method filter

LASlib/src/lasfilter.cpp:1722–1722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1720 inline const CHAR* name() const { return "keep_every_nth"; };
1721 inline I32 get_command(CHAR* string) const { return sprintf(string, "-%s %u ", name(), every); };
1722 inline BOOL filter(const LASpoint* point) { if (counter == every) { counter = 1; return FALSE; } else { counter++; return TRUE; } };
1723 LAScriterionKeepEveryNth(U32 every) { this->every = every; counter = 1; };
1724private:
1725 U32 counter;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected