SFraissTU / BA_PointCloud

PointCloud-BachelorThesis
BSD 2-Clause "Simplified" License
185 stars 42 forks source link

Forcing all points to load within a section #26

Open maradanovic opened 4 years ago

maradanovic commented 4 years ago

First of all, great work and thank you very much.

This is actually a question, not an issue, but I would appreciate any help or hint.

Can I somehow force the point cloud to be loaded to maximum detail (i.e. to the deepest octree level) inside a certain section, regardless of how much area it takes on the screen?

More specifically - I want to copy all of the points inside a given 3d box at runtime. I have successfully done that by:

  1. running through all the children of Point Cloud Set GO to check if their bounding boxes overlap with my box, and if yes
  2. running through all the vertices to check if they lie inside of my box, and if yes
  3. copy vertex and colour to create a final product.

This works great, however, I cannot be sure if all of the points inside of that box are actually loaded and visualised - there may be more points deeper in the octree, but it is important to me to load them all. Thanks in advance!