opensim-creator
opensim-creator copied to clipboard
Add support for attaching the mesh warper to a `(mesh, landmarks, mesh2, landmarks2)` datastructure passed from model editor
I.e. instead of treating the CSV as an explicit import/export step, figure out how to attach the mesh warping UI to the landmarks CSV, such that editing the landmarks and pressing Ctrl+S
saves to the appropriate landmarks CSV file.
The desired workflow is:
- User right-clicks a mesh in the model editor, goes to
Warping > Landmarks
- The implementation searches for
Landmarks/MeshFileName.csv
next to the model file- If one isn't found, prompt to create it
- The implementation asks the user for a "Destination" directory (or loads up the last one the user selected, or defaulted, etc.)
- The implementation finds the associated destination mesh at
Destination/Geometry/MeshFileName.obj
(for example)- The implementation cries/errors if it can't find an associated mesh
- The implementation searches for
Destination/Landmarks/MeshFileName.csv
- If one isn't found, prompt to create it
- The mesh warping UI opens and is connected to the four asset files (only the landmark CSVs are writeable)
- The user plays around with the landmarks etc.
- User presses save, which saves both the source and destination landmarks