改变平面方向

Contents
[ ]

改变平面方向

Aspose.3D for Node.js via Java 允许更改场景的方向。为了改变方向,在 Plane 类中引入了 getUp()setUp() 方法。以下代码片段显示了如何更改平面的方向:

var aspose = aspose || {};

aspose.threed = require("aspose.threed");

// Initialize Scene
var scene = new aspose.threed.Scene();

// Initialize Plane
var plane=new aspose.threed.Plane();

// Set Vector
plane.setUp(new aspose.threed.Vector3(1, 1, 3));
scene.getRootNode().createChildNode(plane);

//This will generate a plane that has customized orientation
scene.save("ChangePlaneOrientation.obj");