I have to draw an ellipsoid with major axis along the x axis and the minor axis parallel to the y axis, centered in the plane.

I drew an ellipse using the XCoreModeling.CreateEllipse () function, then I would rotate the ellipse around its major axis to create the ellipsoid.

But i couldn't find any function in python API that could help me, can anyone help me? Maybe there is a faster way. Thanks.

# Plot Ellipsoid

Hi Ari,

I drew an ellipse using the XCoreModeling.CreateEllipse () function

i couldn't find any function in python API that could help me

Maybe there is a faster way

What is the problem exactly? Do you get an error message? or is it too slow? or... ?

@sylvain said in Plot Ellipsoid:

Hi Ari,

I drew an ellipse using the XCoreModeling.CreateEllipse () function

i couldn't find any function in python API that could help me

Maybe there is a faster way

What is the problem exactly? Do you get an error message? or is it too slow? or... ?

Hi Ari

In my opinion, best and fastest way to create an ellipsoid will be using the Sim4Life GUI.

Create a sphere under Solid tool of desired radius and then click Move Option, you will see stretch option, which can be used to stretch and shrink the sphere.

When you click Stretch, you will see arrows in 3-axis. Click your required axis, then you will see an window showing the ratio of how much you want to stretch (>1) or shrink (<1). write your desired ratio there, your sphere will get stretch or shrinked.

I have attached a screenshot for reference. Hope this help.