Search found 20 matches

by Connor Pyles
Tue Jul 25, 2017 7:19 am
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

Ok, thanks for all of you help, I got 4.0 built and the API is working with the code snippet you posted. Now, assuming I have already run an analysis, which commands do I need to iterate through each model state, rather than setting the pelvis tilt/x-location manually?
by Connor Pyles
Mon Jul 24, 2017 2:10 pm
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

Ok, so I did two things, manually removed OpenSim 3.3 API from MATLAB path, including the Java class and library paths, and closed MATLAB before running the ctest again and it worked. Not sure which one was the fix. Will keep you posted on status, and I'd still appreciate any feedback on loading in ...
by Connor Pyles
Mon Jul 24, 2017 1:53 pm
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

Not sure if this helps, but it looks like the cmake tests are expecting a "C:\opensim-core\Bindings\Java\Matlab\Utilities" folder, which doesn't exist. I figured this out when trying to run configureOpenSim(), which, by the way, I also had to change because it was expecting the OpenSim_buildinfo.txt...
by Connor Pyles
Mon Jul 24, 2017 1:24 pm
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

Apologies for all the questions, but one more thing, in addition to my above comment on the MATLAB API. I understand that the 4.0 API will build models for OpenSim 4.0, but can we initialize models from OpenSim 3.x? I.e., could we run "model = Model('C:\OpenSim 3.3\Models\gait2392_thelen2003muscle.o...
by Connor Pyles
Mon Jul 24, 2017 1:00 pm
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

Hi James, I'm following the "For the impatient (Windows)" build at the link you sent, and when I run ">ctest -C RelWithDebInfo --parallel 8", everything passes except for the Matlab tests (see below). I installed the latest JDK, and a MATLAB "ver" command is showing that it is using Java 1.7.0_60-b1...
by Connor Pyles
Mon Jul 24, 2017 11:24 am
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

Ok, following build instructions now. Thanks for assisstance.
by Connor Pyles
Mon Jul 24, 2017 10:31 am
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

Thanks James, I'll give that a shot and let you know how it goes. I'm assuming the 3.x API's won't convert to Global frame, or something along those lines?
by Connor Pyles
Mon Jul 24, 2017 8:52 am
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

James,

Agreed, thus my second post :) Any tips on how to pull frame orientations? I'm assuming the MATLAB API has some tools to do this?

-Connor
by Connor Pyles
Mon Jul 24, 2017 8:45 am
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Re: Export Bone Geometry to .STL For Each Frame

Alternatively, if could also be possible to export geometry once, and then define coordinate transforms for each geometry. I would just need to know where to look to parse that information.

-Connor
by Connor Pyles
Mon Jul 24, 2017 7:28 am
Forum: OpenSim
Topic: Export Bone Geometry to .STL For Each Frame
Replies: 18
Views: 1704

Export Bone Geometry to .STL For Each Frame

Hi all, I'm new to OpenSim, and am looking for a solution to export bone geometry for each frame of my OpenSim model to .STL or other common CAD format. End goal is to import into a Microsoft Hololens for AR visualization of skeleton kinematics. I saw some posts on converting .vtp files to .obj file...