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

Method processOne

filters/CropFilter.cpp:155–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154
155bool CropFilter::processOne(PointRef& point)
156{
157 for (auto& g : m_geoms)
158 for (auto& gridPnp : g.m_gridPnps)
159 if (crop(point, *gridPnp))
160 return true;
161
162 for (auto& box : m_boxes)
163 if (box.is3d())
164 {
165 if (crop(point, box.to3d()))
166 return true;
167 }
168 else
169 {
170 if (crop(point, box.to2d()))
171 return true;
172 }
173
174
175 for (auto& center: m_args->m_centers)
176 if (crop(point, center))
177 return true;
178
179 return false;
180}
181
182
183void CropFilter::spatialReferenceChanged(const SpatialReference& srs)

Callers

nothing calls this directly

Calls 3

to3dMethod · 0.80
to2dMethod · 0.80
is3dMethod · 0.45

Tested by

no test coverage detected