update point. kdi and temp both reference the NN point cloud
| 148 | |
| 149 | // update point. kdi and temp both reference the NN point cloud |
| 150 | bool 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 | |
| 168 | PointViewPtr NeighborClassifierFilter::loadSet(const std::string& filename, |
nothing calls this directly
no test coverage detected