Commit e4f78cd
Improve PLY loading robustness and error handling (#150)
* Improve PLY loading robustness and error handling
- Add support for PLY files with only DC components (no higher-order spherical harmonics)
- Initialize higher-order harmonics to zero when only DC components are available
- Add better error logging with full traceback in ply_to_usd.py script
- Improve error messages for unexpected spherical harmonics data structure
* Update threedgrut/model/model.py
Co-authored-by: Qi Wu <[email protected]>
---------
Co-authored-by: Qi Wu <[email protected]>1 parent 65c1c5c commit e4f78cd
2 files changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | | - | |
| 107 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
694 | 703 | | |
695 | 704 | | |
696 | 705 | | |
| |||
0 commit comments