Hello,
In the meshingExample orientation.axes are used in a array with values array[0], array[4], array[8].
What is the signification of these indexes and why it is an array of nine?
Thank’s,
Greetings.
Would you specify the piece of code you are having trouble with, please?
- Code:
CapturingReality::Mvs::MeshingAlgorithmSettings meshingAlgorithmSettings;
GetMeshingAlgorithmSettings( pSfmReconstruction, &meshingAlgorithmSettings );
meshingAlgorithmSettings.visibilityRegionRange = 2.0f;
meshingAlgorithmSettings.userSelectedBox.orientation.axes[0] = 1;
meshingAlgorithmSettings.userSelectedBox.orientation.axes[4] = 1;
meshingAlgorithmSettings.userSelectedBox.orientation.axes[8] = 1;
meshingAlgorithmSettings.userSelectedBox.extents.x = 12;
meshingAlgorithmSettings.userSelectedBox.extents.y = 12;
meshingAlgorithmSettings.userSelectedBox.extents.z = 30;
meshingAlgorithmSettings.userSelectedBox.position.x = 0;
meshingAlgorithmSettings.userSelectedBox.position.y = 0;
meshingAlgorithmSettings.userSelectedBox.position.z = 0;
meshingAlgorithmSettings.hasUserSelectedBox = true;
Greetings.
The reconstruction box is generally not an axis-aligned bounding box. The box is centered around its position and its length, width, and height are two times the respective extents. The orientation of the box is stored as a rotation matrix defined by the orientation matrix. The matrix is represented as an array float[9], initially it is zeroed and the diagonal elements are set to one, resulting in identity matrix (effectively no rotation).