DVorthoslice_struct


Synopsis

produce a slice of a structured field perpendicular to a coordinate axis


group DVorthoslice_struct {
Mesh_Struct+Node_Data+Iparam &in {
nnodes+req;
};
int+Iparam axis;
int+Iparam plane;
Mesh_Struct+Node_Data+Oparam out;
method+notify_val+notify_inst upd_orthoslice = "orthoslice";
};

Description

DVorthoslice_struct subsets a structured field (mesh type Mesh_Struct) by removing one slice plane. The slice plane can only be orthogonal to the X, Y, or Z axis.

Input

&in

The input is a reference to a field containing a Mesh_Struct and Node_Data. Mesh_Unif and Mesh_Rect will be accepted, but may produce incorrect results. The input can be 1D, 2D, or 3D.

axis

An integer. Selects which axis (X = 0, Y = 1, Z = 2) the orthoslice will be perpendicular to.

plane

An integer. Selects which plane to extract from the input. The "units" are the array indices of the coordinates. So, for example, if you have a field that has 64 [0-63] nodes extending from -0.5 to 3.12 in X, you are picking a number from 0 to 63, not an absolute location from -0.5 to 3.12.

Output

out

The output is a new field object with a new structured mesh (mesh type Mesh_Struct) for the slice that contains a new Node_Data that is all components of the slice.

Files

v/dv.v
modules/orthoslc.c

Example

Libraries.Main.Mappers.orthoslice

See also