scale


Synopsis

scale a 3D mesh in X, Y, and/or Z

Input Ports

in_field

Mesh

ui_parent

user interface parent object

 

Parameters

X-scale

UIslider

value to scale the X axis

Y-scale

UIslider

value to scale the Y axis

Z-scale

UIslider

value to scale the Z axis

 

Output Ports

out_fld

Mesh

out_obj

output renderable object

 

Description

scale scales a mesh in the X, Y, and/or Z direction, making it appear larger or smaller in the renderer window. The grid is unchanged, but its associated xform transformation matrix is altered.

Input Ports

in_field

The input is any mesh. Any Node_Data that is present is ignored.

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)

Parameters

X-scale
Y-scale
Z-scale

UIsliders. Floats. These inputs independently control the degree of X, Y, and Z scaling. The default is 1.0 (leave at current size). The range is -10.0 to 10.0.

Output Ports

out_fld

The output field is the same mesh as the input mesh, but with its xform matrix changed to reflect the scaling.

out_obj

This is a renderable version of the output field.

Example

Libraries.Examples.Visualization.Mirror_Scale
examples/mirr_scl.v

File

v/modules.v

See also

Related modules