scale method

scale(, scene, scale)

Scale all geometries(Scale the control points not the transformation matrix) in this scene


@staticmethod
def scale(scene, scale):
    ...
ParameterTypeDescription
sceneaspose.threed.SceneThe scene to scale
scaleaspose.threed.utilities.Vector3The scale factor

Example

The following code shows how to scale all geometries in scene by 10 times.

from aspose.threed import Scene
from aspose.threed.entities import PolygonModifier
from aspose.threed.utilities import Vector3

# Ölçekleme için bir test dosyası yükle
scene = Scene.from_file("input.fbx")
# tüm geometrileri 10 kat ölçeklendir.
PolygonModifier.scale(scene, Vector3(10, 10, 10))
scene.save("test.obj")

scale(, node, scale)

Scale all geometries(Scale the control points not the transformation matrix) in this node


@staticmethod
def scale(node, scale):
    ...
ParameterTypeDescription
nodeaspose.threed.NodeThe node to scale
scaleaspose.threed.utilities.Vector3The scale factor

Example

The following code shows how to scale all geometries in scene by 10 times.

from aspose.threed import Scene
from aspose.threed.entities import PolygonModifier
from aspose.threed.utilities import Vector3

# Ölçekleme için bir test dosyası yükle
scene = Scene.from_file("input.fbx")
# tüm geometrileri 10 kat ölçeklendir.
PolygonModifier.scale(scene.root_node, Vector3(10, 10, 10))
scene.save("test.obj")

See Also