PolygonModifier.Scale
Contents
[
Hide
]Scale(Scene, Vector3)
Scale all geometries(Scale the control points not the transformation matrix) in this scene
public static Scene Scale(Scene scene, Vector3 scale)
Parameter | Type | Description |
---|---|---|
scene | Scene | The scene to scale |
scale | Vector3 | The scale factor |
Examples
The following code shows how to scale all geometries in scene by 10 times.
//Load a test file for scaling
var scene = Scene.FromFile("input.fbx");
//scale all geometries 10 times.
PolygonModifier.Scale(scene, new Vector3(10, 10, 10));
scene.Save("test.obj");
See Also
- class Scene
- struct Vector3
- class PolygonModifier
- namespace Aspose.ThreeD.Entities
- assembly Aspose.3D
Scale(Node, Vector3)
Scale all geometries(Scale the control points not the transformation matrix) in this node
public static void Scale(Node node, Vector3 scale)
Parameter | Type | Description |
---|---|---|
node | Node | The node to scale |
scale | Vector3 | The scale factor |
Examples
The following code shows how to scale all geometries in scene by 10 times.
//Load a test file for scaling
var scene = Scene.FromFile("input.fbx");
//scale all geometries 10 times.
PolygonModifier.Scale(scene.RootNode, new Vector3(10, 10, 10));
scene.Save("test.obj");
See Also
- class Node
- struct Vector3
- class PolygonModifier
- namespace Aspose.ThreeD.Entities
- assembly Aspose.3D