Return the base color texture image regardless of material type.
(geom: trimesh.Trimesh)
| 103 | |
| 104 | |
| 105 | def _get_texture_image(geom: trimesh.Trimesh): |
| 106 | """Return the base color texture image regardless of material type.""" |
| 107 | mat = geom.visual.material |
| 108 | img = getattr(mat, "image", None) |
| 109 | if img is not None: |
| 110 | return img |
| 111 | return getattr(mat, "baseColorTexture", None) |
| 112 | |
| 113 | |
| 114 | def _decimate(input_path: str, target_faces: int, tmp_dir: str) -> trimesh.Trimesh: |