TOC PREV NEXT INDEX

DVexplode_xform

Synopsis

transform an array of meshes away from their common center

module DVexplode_xform {
Mesh+Iparam &in[] {
nnodes+req;
};
float+Iparam x_factor;
float+Iparam y_factor;
float+Iparam z_factor;
group+write+nonotify out[array_size(in)] {
DefaultXform xform;
};
group+nonotify out_field_mrg[array_size(in)] {
int+nres arr_ind => index_of(out_field_mrg);
Mesh+nres &out_fld => merge(out[arr_ind],in[arr_ind]);
};
mlink+nonotify+OPort2 out_flds => out_field_mrg.out_fld;
method+notify_val+notify_inst upd_xform_mat<status=1>
= "DVexplode_xform_update";
};

Description

DVexplode_xform transforms each mesh in an array of meshes away from their common center (measured as the average of the min and max in each dimension). The transformation matrices and transformed fields are both available as outputs.

Input

in

Mesh[]. The array of input fields.

x_factor

A float. Sets the time along the streamline for which the particle's position should be calculated.

y_factor

float. Scales the amount that the the fields are translated away from the center.

z_factor

float. Scales the amount that the the fields are translated away from the center.

Output

out.

group[]. Contains the new transforms to be applied to each field.

out_flds

Mesh[]. Contains the output fields

Example

explode_xform.

File

v/dv.v

explode_xform.

See also

Not applicable.

TOC PREV NEXT INDEX