Skip to content

Implement forEachSplat and getBoundingBox for PagedSplats#324

Open
mrxz wants to merge 1 commit intosparkjsdev:mainfrom
mrxz:paged-for-each-splat
Open

Implement forEachSplat and getBoundingBox for PagedSplats#324
mrxz wants to merge 1 commit intosparkjsdev:mainfrom
mrxz:paged-for-each-splat

Conversation

@mrxz
Copy link
Copy Markdown
Collaborator

@mrxz mrxz commented Apr 24, 2026

This PR moves the forEachSplat method into the SplatSource interface, ensuring it works across PackedSplats, ExtSplats and PagedSplats. This allows the SplatMesh.forEachSplat and SplatMesh.getBoundingBox methods to work for paged splats (see #317).

These implementations are somewhat unintuitive for paged splats, as they depend on which splat pages happen to be loaded. This might confuse users, though arguably the current behaviour of no-op for forEachSplats isn't intuitive either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant