ComputationalBiomechanicsLab / opensim-creator

A UI for building OpenSim models
https://opensimcreator.com
Apache License 2.0
137 stars 16 forks source link

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

Open adamkewley opened 3 weeks ago

adamkewley commented 3 weeks ago

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:

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.