[BUG] Triangle mode not properly working for newly opened PCD files
Opened this issue · 1 comments
Deleted user commented
Issue description:
When you in the TRIANGLES mode on edit tab, opening a pcd file and activate it - it's not displaying correctly.
Workaround is simple: just switch to POINTS mode and back to TRIANGLES mode.
Environment:
- Application version: 0.4.0
Steps to reproduce:
- Open the app
- Go to Edit tab
- Switch to TRIANGLES mode
- Load some PCD file
- Activate it
- See that it's not displaying correctly
Expected behavior
Mode should be noticed by pointcloud and attach indices when it's TRIANGLES mode.
Screenshots
Additional context
It's an issue with the indices - by default PCD files don't attaching indices buffer by default.
Deleted user commented
Fixed by adding a new option UI.Edit.display_mode
that globally control the Edit POINTS/TRIANGLES mode and changed the logic of switching the indexes for pointclouds.