• No results found

Endpoint 1 and Endpoint 2 text fields The second, and more interactive way to set the endpoints

3.21 Slice operator

This operator slices a 3D database with a plane that can have an arbitrary orientation. Plots to which the Slice operator has been applied are turned into 2D planar surfaces that are coplanar with the slice plane. The resulting plot can be left as a 2D slice in 3D space or it can be projected to 2D space where other operations can be done to it. A Pseudocolor plot to which a Slice operator has been applied is shown in Figure 4-47.

3.21.1 Positioning the slice plane

You can position the slice plane by setting the origin, normal, and up-axis vectors in the

Slice operator attributes window, shown in Figure 4-48. The slice plane is specified using the origin-normal form of a plane where all that is needed to specify the plane are two vectors; the origin and the normal. The origin of the plane is a point in the slice plane. The normal vector is a vector that is perpendicular to the slice plane.

VisIt allows the slice plane normal to be aligned to a specific axis or it can be set to any arbitrary vector. If you want the slice plane to be along any of the three axes, click theX- Axis,Y-Axis, orZ-Axis radio button. If you want to make a slice plane that does not align with the principle axes, click theArbitrary radio button and then type a direction vector into the text field to the right of theArbitraryradio button. The vector need not be normalized since VisIt will normalize the vector before using it.

Figure 4-47: Slice operator example

Operator Types 119 The slice plane’s origin, which specifies the

location of the slice plane, can be set five different ways. The middle of theSlice operator attributes window, orOrigin area (see Figure 4-49), provides the necessary controls required to set the slice plane origin. TheOrigin area provides five radio buttons:Point,Intercept,Percent,

Zone, andNode. Clicking on one of these radio buttons causes theOrigin area to display the appropriate controls for setting the slice plane origin.

To set the slice plane origin to a specific point, click thePoint radio button in the

Origin area and then type a new 3D point into thePointtext field. To set the slice plane

origin to a specific value along the principle slice axis (usually an orthogonal slice), click theIntercept radio button and then type a new value into theIntercept text field. If you don’t know a good value to use for the

intercept, consider using the percent slice mode. Percent slice mode, which is most often used for an orthogonal slice, allows you to slice along a particular axis using some percentage of the distance along that axis. For example, this allows you to see what the slice plane looks like if its origin is 50% of the distance along the X-Axis. To set the origin using a percentage of the distance along an axis, click thePercent

radio button and then type a new percentage value into thePercent text field or use the

Percent slider.

Sometimes it is useful to slice through a particular zone or node. The Slice operator allows you to pick an origin for the slice plane so a specific zone or node lies in the slice plane. To make sure that a particular zone is sliced by the Slice operator, click on theZone radio

button and then enter the zone to be sliced into theZone text field. Be sure to also enter the domain that contains the zone into theDomain text field if you are slicing a multi- domain database. If you want to make sure that the slice plane’s origin is at a specific node in a mesh, click theNode radio button and enter a new node number into theNode text field. Note that you must also specify a domain if you are slicing a multi-domain database.

Figure 4-48: Slice operator attributes

120 Operator Types Use the up-axis vector when you want the slice plane to be projected to 2D. The up-axis vector is a vector that lies in the slice plane and defines a 2D coordinate system within the plane where the up-axis vector corresponds to the Y-axis. To change the up-axis vector, type a new 3D vector into theDirection text field in theUp Axis area of the window.

3.21.2 Positioning the slice plane using the Plane Tool

You can also position the slice plane using VisIt’s interactive plane tool. The plane tool, which is available in the visualization window’s popup menu, allows you to position a slice plane interactively using the mouse. The plane tool is an object in the visualization window that can be moved and rotated. When the plane tool is changed, it gives its new slice plane to the Slice operator if the operator is set to accept information interactively. To make sure that the Slice operator can accept a new slice plane from the plane tool, check theInteractive check box in theSlice operator attributes window. For more information about the plane tool, read the I n t e r a c t iv e To o l s chapter.

3.21.3 Projecting the slice to 2D

The Slice operator usually leaves sliced plots in 3D so you can position the slice with the plane tool. However, you might want the plot projected to 2D. When a sliced plot is projected to 2D, any 2D operation, likeLineout, can be applied to the plot. To project a plot to 2D, check theProject 2Dcheck box in theSlice operator attributes window.