| 83 | } |
| 84 | |
| 85 | void SampleFilter::ready(PointTableRef) |
| 86 | { |
| 87 | m_populatedVoxels.clear(); |
| 88 | |
| 89 | if (m_cellArg->set()) |
| 90 | m_radius = m_cell / 2.0 * std::sqrt(3.0); |
| 91 | |
| 92 | if (m_radiusArg->set()) |
| 93 | m_cell = 2.0 * m_radius / std::sqrt(3.0); |
| 94 | |
| 95 | log()->get(LogLevel::Debug) |
| 96 | << "cell " << m_cell << ", radius " << m_radius << std::endl; |
| 97 | |
| 98 | m_radiusSqr = m_radius * m_radius; |
| 99 | } |
| 100 | |
| 101 | PointViewSet SampleFilter::run(PointViewPtr view) |
| 102 | { |