This attribute manages three-dimensional measurements belonging to the Feret category of native measurements.
The three-dimensional measurements of the
Feret category are customizable
with the methods below.
A 3D Feret orientation is defined by a θ angle lying in [0; 90] and a ϕ angle
lying in ]-180; 180].
Syntax
Method
Description
void setOrientationCount( uint64_t number )
Sets the number of Feret angle pairs and updates the distribution.
uint64_t orientationCount() const
Returns the number of Feret angle pairs of the distribution.
Sets a pair of theta and phi angles, in degrees, at the index position of the Feret distribution.The angle
parameter must be an array of two elements. The first represents theta between 0 and 90; the second
represents phi between -180 and 180.
iolink::Vector2f orientation( uint64_t index )
Returns the theta and phi angles, in degrees, at the index position of the distribution in a two-elements array.
void resample()
Recomputes the orientations from the current number of angles in order to have a uniform distribution
around a half sphere. The initial number of Feret orientations can be rounded to a greater value when
this value exceeds 100.
Sets a pair of theta and phi angles, in degrees, at the index position of the Feret distribution.The angle
parameter must be an array of two elements. The first represents theta between 0 and 90; the second
represents phi between -180 and 180.
orientation(self, index)
Returns the theta and phi angles, in degrees, at the index position of the distribution in a two-elements array.
resample(self)
Recomputes the orientations from the current number of angles in order to have a uniform distribution
around a half sphere. The initial number of Feret orientations can be rounded to a greater value when
this value exceeds 100.
Attributes
Description
orientation_count
Returns or sets the number of Feret angle pairs of the distribution.
Sets a pair of theta and phi angles, in degrees, at the index position of the Feret distribution.The angle
parameter must be an array of two elements. The first represents theta between 0 and 90; the second
represents phi between -180 and 180.
float[] Orientation(long index)
Returns the theta and phi angles, in degrees, at the index position of the distribution in a two-elements array.
void Resample()
Recomputes the orientations from the current number of angles in order to have a uniform distribution
around a half sphere. The initial number of Feret orientations can be rounded to a greater value when
this value exceeds 100.
Attributes
Description
orientationCount
Gets or sets the number of Feret angle pairs and updates the distribution.