Output a 3D matrix¶
Output a 3D matrix¶
1# This example prints a 3D matrix to output screen
2
3# Create a local variable for the impact.creator ThreeD object
4three_d = impact.creator.three_d()
5
6# Create a default 3D matrix (Identity matrix)
7matrix = three_d.matrix3_d()
8
9# Create a local variable for the output toolbox
10ot = impact.gui.output_toolbox
11
12# Print the matrix to output toolbox
13ot.add(matrix.to_string())