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

Function _parse_floats

Scripts/clean_meshes.py:111–113  ·  view source on GitHub ↗

Whitespace-tolerant float list parser for inline mesh attributes.

(s: str)

Source from the content-addressed store, hash-verified

109 cleaned_mesh.visual = trimesh.visual.TextureVisuals(uv=uv)
110 else:
111 cleaned_mesh.visual = trimesh.visual.ColorVisuals()
112
113 if len(cleaned_mesh.vertices) == 0 or len(cleaned_mesh.faces) == 0:
114 print(f" x Mesh became empty after cleaning")
115 return False
116

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected