Expose Geometric Transformation
Contents
[
Hide
]
Expose Geometric Transformation
Aspose.3D for Java allows exposing geometric transformation of a 3D scene. You can evaluate the global transformation using evaluateGlobalTransform
method. The following code snippet shows how to expose the geometric transformation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
// Initialize node | |
Node n = new Node(); | |
// Get Geometric Translation | |
n.getTransform().setGeometricTranslation(new Vector3(10, 0, 0)); | |
// The first Console.WriteLine will output the transform matrix that includes the geometric transformation | |
// while the second one will not. | |
System.out.println(n.evaluateGlobalTransform(true)); | |
System.out.println(n.evaluateGlobalTransform(false)); |