MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _compiler_dirs

Function _compiler_dirs

Scripts/clean_meshes.py:123–132  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

_append_expandedFunction · 0.85
flatten_includesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected