| 56 | |
| 57 | |
| 58 | void Processor::run() |
| 59 | { |
| 60 | m_loader.init(b.pointFormatId, b.scaling, b.extraDims); |
| 61 | m_vi.initParentOctant(); |
| 62 | |
| 63 | size_t totalPoints = 0; |
| 64 | for (int i = 0; i < 8; ++i) |
| 65 | { |
| 66 | OctantInfo& child = m_vi.child(i); |
| 67 | |
| 68 | totalPoints += child.numPoints(); |
| 69 | if (child.numPoints() < MinimumPoints) |
| 70 | m_vi.octant().movePoints(child); |
| 71 | } |
| 72 | // It's possible that all the file infos have been moved above, but this is cheap. |
| 73 | if (totalPoints < MinimumTotalPoints) |
| 74 | for (int i = 0; i < 8; ++i) |
| 75 | { |
| 76 | OctantInfo& child = m_vi.child(i); |
| 77 | m_vi.octant().movePoints(child); |
| 78 | } |
| 79 | |
| 80 | sample(); |
| 81 | write(); |
| 82 | m_manager.queue(m_vi.octant()); |
| 83 | } |
| 84 | |
| 85 | void Processor::write() |
| 86 | { |
nothing calls this directly
no test coverage detected