Select largest x% of splats
This pull request introduces a new feature to select the largest percentage of splats based on their size, along with the necessary UI and localization updates. The changes include implementing a new operation class, adding a menu option, creating a popup with input functionality, and supporting multiple languages for the feature.
Core Feature Implementation:
- New Operation Class: Added
SelectLargestSplatsOpinsrc/edit-ops.tsto enable selection of the largest splats by size. This includes methods for performing, undoing, and destroying the operation. - Export and Integration: Exported
SelectLargestSplatsOpand integrated it into the editor by registering theselect.largestPercentevent insrc/editor.ts. [1] [2]
UI Enhancements:
- Menu Option: Added a new menu item for selecting the largest percentage of splats in
src/ui/menu.ts. - Popup Input: Enhanced the popup system in
src/ui/popup.tsto support an input field for entering the percentage value. [1] [2] [3] [4] [5]
Localization Updates:
- New Strings: Added localized strings for the new feature in multiple languages, including English, German, French, Japanese, Korean, and Chinese, in
src/ui/localization.ts. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
Hi @cs-util ,
This functionality is available using the SPLAT DATA histogram panel.
Is there a reason it doesn't work for you?
Thanks
The issue with the histogram panel is, that you can choose the scale only x, y or z. And if you removed 50% from one of those, you don't know what 50% of the others would have been. In my oppinion, the histogram panel is nice for debugging or experimenting, but it is no tool, that can be used well in any workflow.
Also selecting the largest n% of splats is nothing that immediately helps with anything.
@simonbethke there is histogram plot by gaussian volume (xyz) and surface area. We could also add a max scale plot to do what's accomplished here.
That sounds like a good idea. Also it should take the max dimension in splat-space. Not in World-space
Closing. If you really need max(scaleX, scaleY, scaleZ), please add that as a derived property of the SPLAT DATA panel.