Welcome to ask.woodem.org. You may post when you login through your GitHub account.

Data in exported shapepack for ellipsoids

0 votes
asked Mar 30, 2017 by MaxWiebicke (500 points)

I was just wondering, how the data of ellipsoids is saved when exporting it  with


I understand the following entries in the output file:

Label Shape Center[x,y,z] missing_value orientation_vector[x,y,z] semiaxes[a,b,c]

The value I called missing_value corresponds to the first semiaxis -- why?. Should the missing_value be the angle for the orientation_vector? As described in the Quaternion?

Best regards, Max

1 Answer

+1 vote
answered Mar 30, 2017 by eudoxos (49,150 points)
selected Mar 31, 2017 by MaxWiebicke
Best answer
Hi Max,

the missing_value is bounding sphere radius, so the maximum semi-axis in case of ellipsoid. It is not necessary to reconstruct the ellipsoid, as orientation is stored as rotation vector (which is unit-length rotation axis times the angle of rotation), but it is used by RawShape https://woodem.org/woo.dem.html#woo.dem.RawShape.radius so that it can represent any shape by its bounding sphere.

I hope this answers your question. I am glad there are curious people out there :))

Best, Vaclav
commented Mar 31, 2017 by MaxWiebicke (500 points)

Hi Vaclav,

thank you for your very fast answer!
That's a great way to store the orientation -- I was already wondering why it's norm was not == 1, but that makes sense.

Best, Max