PolygonModifier.Scale

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)
ParameterTypeDescription
sceneSceneThe scene to scale
scaleVector3The 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


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)
ParameterTypeDescription
nodeNodeThe node to scale
scaleVector3The 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