Switch attribute-based vector data from referencing PointIds to indexes in the points table (#1949)

* Index for points

* Code review

* Add todo comment about a possible perf optimization

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
James Lindsay
2024-09-04 08:59:55 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent 19541c9684
commit 9524835a30
8 changed files with 326 additions and 135 deletions
@@ -89,7 +89,7 @@ impl OriginalTransforms {
let selected_handles = selected_points.iter().filter_map(|point| point.as_handle());
let anchor_ids = selected_points.iter().filter_map(|point| point.as_anchor());
let connected_handles = anchor_ids.flat_map(|point| vector_data.segment_domain.all_connected(point));
let connected_handles = anchor_ids.flat_map(|point| vector_data.all_connected(point));
let all_handles = selected_handles.chain(connected_handles);
let handles = all_handles