Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to explicitly assign mesh warp(s) to each point in a model #891

Open
adamkewley opened this issue Jun 18, 2024 · 0 comments
Open

Comments

@adamkewley
Copy link
Collaborator

The model warper currently figures out which mesh warps are associated with which points by looking at which geometries are attached to the same base frame as the point.

It's a generally-useful heuristic because usually points are spatially close to the body they're attached to (usually). However, it's problematic when:

  • There's multiple meshes attached to that frame and it wouldn't necessarily make sense for the engine to combine those meshes into a single warp kernel
  • The point is actually closer to the surface of some other mesh attached to some other base frame (think: points that are between two bodies or similar

So the engine needs to support users manually specifying point-to-warp associations in the .warpconfig.toml file, such that they can decide how these cases will be handled. I'm thinking something like:

[points]
[[point_name]]
associated_meshes = ['pelvis.obj', 'femur.vtp']

The engine would then read this at initialization time and use it when fetching (+creating) the associated warp kernel that's needed for that particular point.

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

No branches or pull requests

1 participant