Skip to content

Conversation

RoyJames
Copy link

@RoyJames RoyJames commented Nov 9, 2021

This behavior is only active when collect_faces==True. This flag indicates that the user is interested in playing with faces at the cost of additional memory. This change allows people to have the option to operate on faces that has a specific material. I definitely need this feature for my own project. Pushing this change in case other people may find it useful.

@greenmoss
Copy link
Collaborator

LGTM

Any down sides to adding this? Additional memory perhaps?

@RoyJames
Copy link
Author

LGTM

Any down sides to adding this? Additional memory perhaps?

The only downside is additional memory for duplicating faces when this flag is active - face triangle indices will be stored in two places: Material.faces (newly added in this PR) and Mesh.faces (original code). The latter is just the combination of all Material.faces.

@wxfred
Copy link

wxfred commented Sep 11, 2025

Any progress, pls? If a mesh contains multiple materials, we need to group the faces into materials.

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.

3 participants