Skip to content

Comments

Visualize multiple pairs of meshes and skeletons with view3d#14

Merged
huangziwei merged 6 commits intomainfrom
better_view3d
Jun 17, 2025
Merged

Visualize multiple pairs of meshes and skeletons with view3d#14
huangziwei merged 6 commits intomainfrom
better_view3d

Conversation

@huangziwei
Copy link
Collaborator

@huangziwei huangziwei commented Jun 17, 2025

import skeliner as sk

name = [720575940552301329, 720575940554769884, 720575940556472535, 720575940560499902, 720575940564337565,
        720575940554550834, 720575940555141886, 720575940558814886, 720575940562055087, 720575940569769761]
meshes = [sk.io.load_mesh(f"../../../flatone/output/{n}/mesh_warped.ctm") for n in name]
skels = [sk.io.load_swc(f"../../../flatone/output/{n}/skeleton_warped.swc") for n in name]

sk.view3d(skels, meshes, scale=(1, 1e-3))
Screenshot 2025-06-17 at 13 46 06

With this change, flatone can also do whole directory 3d viewing with very little effort:

 # view all warped meshes and skeletons in the default `output/` directory 
flatone view3d --warped

@huangziwei huangziwei merged commit d8800cc into main Jun 17, 2025
4 checks passed
@huangziwei huangziwei deleted the better_view3d branch June 17, 2025 12:58
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.

1 participant