Skip to content

Conversation

@ft-lab
Copy link
Collaborator

@ft-lab ft-lab commented Jan 27, 2026

Description

Fixes #52

I specified SetFamilyType when creating GeomSubset in OBJ and DAE.

geom_subset.SetFamilyType(mesh, UsdShade.Tokens.materialBind, UsdGeom.Tokens.partition)

unit tests: tests/testMaterial.py - test_mesh_subsets_materials

Added a process to check ElementType/FamilyName/FamilyType to the OBJ and DAE Subset unit tests.

Checklist

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@ft-lab ft-lab self-assigned this Jan 27, 2026
self.assertEqual(element_type, UsdGeom.Tokens.face)
family_name = subset.GetFamilyNameAttr().Get()
self.assertEqual(family_name, UsdShade.Tokens.materialBind)
family_type = subset.GetFamilyType(UsdGeom.Mesh(box_materials_prim), family_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also assert ValidateFamily on the mesh to ensure that partition was the correct familyType to use

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.

Handle face subsets for OBJ

2 participants