Return (meshdir, texturedir, assetdir) declared by any directly under ``root``. MuJoCo allows several compiler elements; later ones win for a given attribute, matching the C++ importer's last-writer behaviour.
(root)
| 121 | if np.allclose(size, 0): |
| 122 | print(f" Warning: Mesh has zero size!") |
| 123 | |
| 124 | # include_normals: trimesh omits the NORMAL accessor by default and |
| 125 | # Unreal then builds the mesh with zero normals ("degenerate tangent |
| 126 | # bases" / "nearly zero normals" on every import). |
| 127 | cleaned_mesh.export(str(output_path), include_normals=True) |
| 128 | print(f" -> Saved: {output_path.name}") |
| 129 | return True |
| 130 | |
| 131 | except Exception as e: |
| 132 | print(f" x Error: {e}") |
| 133 | return False |
| 134 | |
| 135 |
no outgoing calls
no test coverage detected