| 262 | } |
| 263 | |
| 264 | bool 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 | |
| 274 | bool CropFilter::crop(const PointRef& point, const BOX2D& box) |
| 275 | { |