Commit 1aa17083 authored by David Flynn's avatar David Flynn
Browse files

geom: avoid copying constructing octree root node

This reduces confusion when adding a unique_ptr to the node structure.
parent 0ddede25
......@@ -596,14 +596,14 @@ private:
int nodeSizeLog2 = gbh.geom_max_node_size_log2;
// push the first node
PCCOctree3Node node00;
fifo.emplace_back();
PCCOctree3Node& node00 = fifo.back();
node00.start = uint32_t(0);
node00.end = uint32_t(pointCloud.getPointCount());
node00.pos = uint32_t(0);
node00.neighPattern = 0;
node00.numSiblingsPlus1 = 8;
node00.siblingOccupancy = 0;
fifo.push_back(node00);
size_t processedPointCount = 0;
std::vector<uint32_t> values;
......
......@@ -583,14 +583,14 @@ private:
pcc::ringbuf<PCCOctree3Node> fifo(pointCloud.getPointCount() + 1);
// push the first node
PCCOctree3Node node00;
fifo.emplace_back();
PCCOctree3Node& node00 = fifo.back();
node00.start = uint32_t(0);
node00.end = uint32_t(pointCloud.getPointCount());
node00.pos = uint32_t(0);
node00.neighPattern = 0;
node00.numSiblingsPlus1 = 8;
node00.siblingOccupancy = 0;
fifo.push_back(node00);
// map of pointCloud idx to DM idx, used to reorder the points
// after coding.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment