unilab.visualization.debug_primitives.append_debug_primitives_to_scene¶
- unilab.visualization.debug_primitives.append_debug_primitives_to_scene(scene, primitives, *, mesh_ids=None)[source]¶
Inject debug primitives into a caller-owned mjvScene (
viewer.user_scn).mesh_idsresolvesghost_geommesh assets to mesh ids in the loaded viewer model; a ghost primitive without a resolvable mesh raisesValueError.textprimitives are a documented no-op (mjvScene has no text channel), matching the offline renderer. Returns the number of geoms appended; injection stops atscene.maxgeom.