| 83 | } |
| 84 | |
| 85 | void Processor::write() |
| 86 | { |
| 87 | OctantInfo& parent = m_vi.octant(); |
| 88 | |
| 89 | for (int i = 0; i < 8; ++i) |
| 90 | { |
| 91 | OctantInfo& child = m_vi.child(i); |
| 92 | PointViewPtr& v = child.source(); |
| 93 | if (v->size() || child.mustWrite()) |
| 94 | { |
| 95 | writeCompressed(child.key(), child.source()); |
| 96 | parent.setMustWrite(true); |
| 97 | } |
| 98 | } |
| 99 | if (m_vi.key() == VoxelKey(0, 0, 0, 0)) |
| 100 | writeCompressed(parent.key(), parent.source()); |
| 101 | } |
| 102 | |
| 103 | |
| 104 | void Processor::sample() |
no test coverage detected