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

Method crop

filters/CropFilter.cpp:264–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264bool CropFilter::crop(const PointRef& point, const BOX3D& box)
265{
266 double x = point.getFieldAs<double>(Dimension::Id::X);
267 double y = point.getFieldAs<double>(Dimension::Id::Y);
268 double z = point.getFieldAs<double>(Dimension::Id::Z);
269
270 // Return true if we're keeping a point.
271 return (m_args->m_cropOutside != box.contains(x, y, z));
272}
273
274bool CropFilter::crop(const PointRef& point, const BOX2D& box)
275{

Callers

nothing calls this directly

Calls 12

to3dMethod · 0.80
to2dMethod · 0.80
pointMethod · 0.80
setPointIdMethod · 0.80
appendPointMethod · 0.80
containsMethod · 0.45
is3dMethod · 0.45
sizeMethod · 0.45
insideMethod · 0.45
xMethod · 0.45
yMethod · 0.45
zMethod · 0.45

Tested by

no test coverage detected