Identity of a 3D Matrix

Identity of a 3D Matrix
 1# This example converts a 3D matrix to an Identity matrix
 2# and prints the matrix to output screen
 3
 4# Create a local variable for the impact.creator ThreeD object
 5three_d  = impact.creator.three_d()
 6
 7# Create a local variable for the output toolbox
 8ot = impact.gui.output_toolbox
 9
10# Create a default 3D matrix (Identity matrix)
11matrix = three_d.matrix3_d()
12
13# Converts to identity matrix
14call(matrix.identity())
15
16# Print the Identity matrix to output toolbox
17ot.add(matrix.to_string())