gkjohnson / three-bvh-csg

A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh
MIT License
602 stars 46 forks source link

Add an option / utility function to consolidate group so fewer groups / materials are needed #40

Closed gkjohnson closed 1 year ago

gkjohnson commented 2 years ago

Possibly just provide an option to group common materials together to reduce group explosion.

Note when use groups is false the group attribute generated is for a single group.

gkjohnson commented 1 year ago

End goal:

useGroups false useGroups true
consolidateGroups false no groups present ordered a, b groups listed
consolidateGroups true no groups present consolidated groups with minimal materials