Skip to content

BufferGeometryUtils: Add remapAttribute(). - #34945

Merged
Mugen87 merged 2 commits into
mrdoob:devfrom
bhouston:remap_attribute
Oct 10, 2026
Merged

Mugen87 merged 2 commits into
mrdoob:devfrom
bhouston:remap_attribute

Conversation

@bhouston

Copy link
Copy Markdown
Contributor

Extracts the attribute copy logic in mergeVertices() into a remapAttribute() helper that builds an attribute from a list of source vertex indices. mergeVertices() now uses it, so remapped attributes keep name, usage, gpuType and instancing metadata, and shared interleaved buffers stay shared. This is split out of #34944, where unwrapUVs() reuses the helper to split vertices along new UV seams. Unit tests cover raw value preservation, interleaved buffers and half-float morph attributes.

Comment thread examples/jsm/utils/BufferGeometryUtils.js Outdated
Comment thread examples/jsm/utils/BufferGeometryUtils.js Outdated
Comment thread examples/jsm/utils/BufferGeometryUtils.js Outdated
@Mugen87
Mugen87 merged commit 11738a9 into mrdoob:dev Oct 10, 2026
9 checks passed
@Mugen87 Mugen87 added this to the r187 milestone Oct 10, 2026
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.

2 participants