Page 1 of 1

Wrapping dimensions

Posted: Wed Nov 28, 2018 12:40 pm
by nassila
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.

Re: Wrapping dimensions

Posted: Thu Nov 29, 2018 1:11 pm
by clnsmith
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=

Re: Wrapping dimensions

Posted: Thu Nov 29, 2018 1:23 pm
by aymanh
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