Wrapping dimensions

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Najoua Assila
Posts: 34
Joined: Thu Aug 30, 2018 9:24 am

Wrapping dimensions

Post by Najoua Assila » Wed Nov 28, 2018 12:40 pm

Hi,

I am trying to change the wrapping objects dimensions via python. Whereas, I managed to do that with the functions set_radius and set_length for cylinders, I couldn't find a similar function for the other wrapping objects (ellipsoid and torus)

Thank you in advance for your help.

Tags:

User avatar
Colin Smith
Posts: 53
Joined: Fri Feb 24, 2012 11:50 am

Re: Wrapping dimensions

Post by Colin Smith » Thu Nov 29, 2018 1:11 pm

Looks like the typical set functions for these components are not wrapped yet.

You can get around this using the PropertyHelper:
viewtopicPhpbb.php?f=91&t=9609&p=0&start=0&view='

Should be similar in Python to the MATLAB example above^
viewtopicPhpbb.php?f=91&t=4257&p=0&start=0&view=

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Wrapping dimensions

Post by Ayman Habib » Thu Nov 29, 2018 1:23 pm

Hello,

WrapTorus has been modernized to use auto generated methods so it has set/get methods for inner_radius, and outer_radius.
WrapEllipsoid however has not been modernized and you'll need to use the PropertyHelper class to modify it as pointed out by Colin.

Hope this helps,
-Ayman

POST REPLY