Skip to content

Conversation

@brentyi
Copy link
Collaborator

@brentyi brentyi commented Jan 15, 2026

This snippet was hitting edge cases in both the server and client logic:

import trimesh.creation
import viser

icosphere = trimesh.creation.icosphere(subdivisions=3, radius=1.0)

server = viser.ViserServer()
serializer = server.get_scene_serializer()

sphere_handle = server.scene.add_mesh_simple(
    "/mesh", vertices=icosphere.vertices, faces=icosphere.faces
)

for i in range(100):
    icosphere.vertices *= 1.05
    sphere_handle.vertices = icosphere.vertices
    serializer.insert_sleep(1.0 / 5.0)

serializer.show()

@brentyi brentyi merged commit 3d8ea93 into main Jan 15, 2026
@brentyi brentyi deleted the brent/20260115_fix_mesh_animation branch January 15, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants