MCPcopy Create free account
hub / github.com/PDAL/PDAL / doOne

Method doOne

filters/NeighborClassifierFilter.cpp:150–165  ·  view source on GitHub ↗

update point. kdi and temp both reference the NN point cloud

Source from the content-addressed store, hash-verified

148
149// update point. kdi and temp both reference the NN point cloud
150bool NeighborClassifierFilter::doOne(PointRef& point, PointRef &temp,
151 KD3Index &kdi)
152{
153 if (m_domain.empty()) // No domain, process all points
154 doOneNoDomain(point, temp, kdi);
155
156 for (DimRange& r : m_domain)
157 { // process only points that satisfy a domain condition
158 if (r.valuePasses(point.getFieldAs<double>(r.m_id)))
159 {
160 doOneNoDomain(point, temp, kdi);
161 break;
162 }
163 }
164 return true;
165}
166
167
168PointViewPtr NeighborClassifierFilter::loadSet(const std::string& filename,

Callers

nothing calls this directly

Calls 2

valuePassesMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected