ComputationalBiomechanicsLab / opensim-creator

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

Add non-participating landmark support to mesh warper. #741

Closed adamkewley closed 1 year ago

adamkewley commented 1 year ago
adamkewley commented 1 year ago

@aseth1 / @JuliaVanBeesel in the main branch, the UI now supports importing non-participating landmarks from a CSV file. Non-participating landmarks are landmarks that appear on the "Source" mesh as purple spheres, aren't user-interactable, do not participate in computing a warping kernel, but are pushed through the kernel into the "Result" view panel.

This is a last-minute addition that shall be shipped in 0.5.1. The development cycle for that release is only one week, so please perform any basic QA testing on your end if you plan on presenting it. The short development cycle has the express intent of adding and last-minute changes for TGCS/ISB:


Here's some screenshots of the (somewhat hacky) demo:

1) Open point exporter, which exports points from an OpenSim model w.r.t. a mesh frame (#742):

1_export-points-menu

2) Select relevant points (e.g. muscle path points - note: selecting all points expressed in a frame etc. is not yet implemented on the main branch) and export those points to a CSV file:

2_select-what-to-export

3) Open mesh warper and find the "Import non-participating landmarks" feature (this issue):

3_import-landmarks-into-mesh-warper

4) Perform warping as normal. The purple points should move due to warping but do not participate in computing the warping kernel (and do not require a pairing with the middle panel):

4_edit-warp

5) The warped points can be exported via the Export dropdown

Missing features/next steps (perhaps before ISB, but unlikely to be before TGCS):

adamkewley commented 1 year ago

This issue (ability to add non-participating landmarks) is now merged into main - I'll continue the point exporter work in #742