Closed gnufu closed 3 years ago
This is by design: all node properties (except Cell, BoundingBoxExactGlobal, and PointCountTreeLeafs) are removed, because they would no longer be valid for new subnode data. Implicit recomputation of all these properties would be too expensive, e.g. when generating/merging large octrees, then many intermediate (structural) nodes are generated for which computing LoD data makes no sense and would introduce a very large overhead.
You can use LodExtensions.GenerateLod to explicitely recompute these properties.
additional info: all these properties that are removed depend on subnode data, e.g. are level-of-detail representations. When swapping out subnodes, the previous values no longer make sense.
PointSetNode.WithSubNodes() is mostly used for internal processing/construction of octrees and probably should never have been made public. What is the use case you are trying to solve? @gnufu
When I update the subnodes of a node with
the node
withUpdatedSubnodes
does not hold the positions, colors, intensities etc. values ofnode
a workaround working for me is setting those properties afterwards again: