Module: Grid Cut ()
The Grid Cut module is a tool for visualizing a cross section of a tetrahedral grid consisting of different materials. Within the cross section the different materials are indicated by their respective colors. The module is derived from Clipping Plane and thus provides the same methods for manipulating the position and orientation of the cross section as this base class. An similar module Surface Cross Section exists for displaying filled cross sections through a surface separating different regions in space.
Data [required]
The tetrahedral grid to be visualized.
Orientation
This port provides three buttons for resetting the slice orientation: xy perpendicular to the z-axis, xz perpendicular to the y-axis, or yz perpendicular to the x-axis.Options
If the adjust view toggle is set, the camera of the selected viewer is reset each time a new slice orientation is selected.With the rotate toggle you can switch on the rotate handle for the cutting plane and off again.
If the immediate toggle is set the slice is updated every time you drag it with the mouse in the 3D viewer. Otherwise, only the bounding box of the cutting plane is moved and the update takes place when you release the mouse button.
The fit to points toggle lets you reset the plane by clicking on at least 3 different points in the scene. After enabling this toggle, you should switch to interaction mode by pressing the ESC key inside the viewer. Then click 3 times at different points on any geometry in the scene. The plane then will be automatically adjusted to match these points. The virtual trackball - visible when rotate toggle is active - will be moved to the center of the picked points. After 3 points have been picked, this toggle is automatically unchecked, unless you pressed the shift key. Shift-clicking allows you to select more than 3 points. In this case the plane that best fits the selected points will be computed.
The set plane toggle lets you to show/hide exact plane definition ports.
Translate
This slider allows you to select different slices. The slices may also be picked and dragged directly in the 3D viewer.Frame
This port is used to display or hide the frame, set the frame width and color.Selection
This port maintains a list of materials to be displayed within the cross section. With the selection menu one can select a single material. The Add button adds the currently selected material to the list so the that is becomes visible and the Remove button removes the material so that is becomes invisible.Export
Creates a Surface object containing the set of currently visible triangles.
Plane Definition
Set Plane
The set plane toggle lets you to show/hide exact plane ports.Plane definition
Please refer to the Clipping Plane documentation.
Inherits all commands of Clipping Plane.
selectMaterial <id1> [<id2> ...]
Selects the materials with the specified ids so that intersections of these materials with the cutting plane will be shown. You need to call fire before changes take effect.unselectMaterial <id1> [<id2> ...]
Unselects the materials with the specified ids so that intersections of these materials with the cutting plane will not be shown. You need to call fire before changes take effect.