Autodesk / Autodesk/arnold-usd

Unexpected "wrong number of vertex indices" for meshes

Open
#2,325 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
284
Forks
68
Avg merge
2d 19h
Merged PRs (30d)
14

Description

Hello,
I try to render an usd with "unconventional" meshes (they have dangling vertices, non manifold vertices, n-gons...), and it worked with husk (with houdini 20.0 and htoa-6.3.1.0 / arnold-7.3.1.0) but I've got an error with the kick command:

```
00:00:00 183MB ERROR | [polymesh] /world/geo/pr_apartment/geo/door_002_geo: wrong number of vertex indices (found 61005, expected 60749)
00:00:00 183MB ERROR | [polymesh] /world/geo/pr_apartment/geo/door_003_geo: wrong number of vertex indices (found 61005, expected 60749)
```

We plan to fix the topology, but can you explain to me which criteria of these meshes raises this error?
Thanks for you help,
Clement

**To Reproduce**
Steps to reproduce the behavior:
1. rename the attachment `doors.log` to `doors.usd`
2. kick -i doors.usd

**Used Software Versions**
- Arnold: 7.3.1.0
- USD: 23.08
- OS: CentOS Linux 7 (Core), Linux kernel 3.10.0-957.el7.centos.plus.x86_64

[kick.log](https://github.com/user-attachments/files/20688573/kick.log)

[doors.log](https://github.com/user-attachments/files/20688575/doors.log)

Contributor guide

Open the contributing guide

Research direction

Start by running kick -i against the attached doors.usd and compare the reported vertex counts with doors.log. Trace how the mesh topology is imported and validated, then document which topology condition produces the mismatch and verify the explanation against both reported door meshes.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.