21.1.2. Generating the Mesh Display Using the Display Grid Dialog Box

The Display Grid dialog box includes a full set of tools to control the display of items using several criteria.

To generate the mesh display:

  1. Select Display > Grid....

  2. Select the entities to be displayed in the Zones lists in the Nodes, Edges, Faces, or Cells tabs. You can also select several entities of the same group using the Zone Groups lists in these tabs.

  3. Select the display Options as appropriate from the group box in the Nodes, Edges, Faces, or Cells tabs.

    You may select intrinsic parameters such as skewness or size. When you specify a range for a particular parameter, the entities that satisfy that condition are displayed. If more than one range limitation is specified, then only those entities that match all specified range limitations are drawn.

  4. The Bounds tab offers enhanced functionality relative to the ribbon group.

    You may insert up to six cutplanes (two in each of the x-, y-, and z-direction) and asymmetrically control their location based on specific coordinates. Alternatively, you can compute ranges based on the proximity to a selected entity.

  5. Set the display options as appropriate in the Attributes tab. See Mesh Display Attributes

    You can specify information regarding color, display of solid (filled) faces, and shrinkage of faces and cells. These features can help you visualize your mesh effectively and quickly determine the cause of any problems in the mesh.

  6. Click Display to draw the mesh in the active graphics window.

    To cancel a display operation, press Ctrl+C while the data is being processed in preparation for graphical display. You cannot cancel the operation after the program begins to draw in the graphics window.

21.1.2.1. Mesh Display Attributes

The mesh display options include modifying the mesh colors, adding the outline of important features to a display, displaying normals, shrinking the faces and/or cells in the display, adding lights for filled mesh displays, and so on.

Modifying the Mesh Colors

You can control the colors used to render the mesh for each zone type or entity. You can modify the colors using the Grid Colors dialog box.

  1. To open the Grid Colors dialog box, go to the Attributes tab in the Display Grid dialog box, and click Colors....

    By default, the Color by Type option is selected, enabling you to assign colors based on zone type.

  2. To change the color assigned to a particular zone type, select the zone type in the Types list.

  3. Select the required color in the Colors list.

  4. If you prefer to assign colors based on the zone ID, select the Color by ID option.

  5. Select Color by Normal to color one side of the faces in grey and the other side in yellow, depending on the normal direction. The side colored grey indicates normal direction (normals pointing toward you), while the side colored yellow has normals pointing away.


Important:  You can set colors individually for the mesh displayed on each of the zones using the Scene Description dialog box.


Adding Features to an Outline Display

For closed 3D geometries, the standard outline display may not show sufficient details to accurately depict the shape. This is because for each boundary, only the edges on the outside of the geometry (that is, those used by only one face on the boundary) are drawn. You can capture additional features using the Feature option in the Display Grid dialog box. Specify an appropriate value for the Feature Angle to obtain the outline display required.

Shrinking Faces and Cells in the Display

To distinguish individual faces or cells in the display, you may want to enlarge the space between adjacent faces or cells by increasing the Shrink Factor in the Display Grid dialog box. The default value of zero produces a display in which the adjacent faces or cells overlap. A value of 1 creates the opposite extreme, where each face or cell is represented by a point and there is a considerable space between entities. A small value such as 0.01 may be sufficient to enable you to distinguish a face or cell from its neighbor. Figure 21.1: Mesh Display (A) With Shrink Factor = 0 (B) With Shrink Factor = 0.01 shows displays with different Shrink Factor values.

Figure 21.1:  Mesh Display (A) With Shrink Factor = 0 (B) With Shrink Factor = 0.01

Mesh Display (A) With Shrink Factor = 0 (B) With Shrink Factor = 0.01

Adding Lights

You can add lights with a specified color and direction to your display. These lights can enhance the appearance of the display, especially for 3D geometries.

  • To enable the effect of lighting using the Display Options dialog box, enable Lights On in the Lighting Attributes group box and click Apply. You can also choose the method to be used in lighting interpolation. Select Flat, Gouraud, or Phong in the Lighting drop-down list. Flat is the most basic method: there is no interpolation within the individual polygonal facets. Gouraud and Phong have smoother gradations of color because they interpolate on each facet.

  • The Lights dialog box contains options for creating lights and then enabling/disabling individual lights as needed. In this way, you can retain lights that you have defined previously but do not want to use at present.

    The default light, light 0 is defined to be dark gray with a direction of (1,1,1). To define additional lights, do the following:

    1. Increase Light ID to a new value (for example, 1).

    2. Enable Light On.

    3. Define the light color by entering a descriptive string (for example, lavender) in the Color field, or by moving the Red, Green, and Blue sliders to obtain the desired color. The default color for all lights is dark gray.

    4. Specify the light direction by doing one of the following:

      • Enter the (X, Y, Z) Cartesian components under Direction.

      • Click the middle mouse button in the desired location on the sphere under Active Lights. (You can also move the light along the circles on the surface of the sphere by dragging the mouse while holding down the middle button.) You can rotate the sphere by pressing the left mouse button and moving the mouse (like a trackball).

      • Use your mouse to change the view in the graphics window so that your position in reference to the geometry is the position from which you would like a light to shine. Then click Use View Vector to update the X,Y,Z fields with the appropriate values for your current position and update the graphics display with the new light direction. This method is convenient if you know where you want a light to be, but you are not sure of the exact direction vector.

    5. Repeat steps 1–4 to add more lights.

    6. When the lights have been defined, click Apply in the Lights dialog box to save the definitions.

    To remove a light, enter the ID number of the light to be removed in the Light ID field and then clear the Light On check box. When a light is disabled, its definition is retained, so you can easily add it to the display again at a later time by selecting the Light On check box.

    If you have made changes to the light definitions, but you have not yet clicked Apply, you can reset the lights by clicking Reset. All lighting characteristics will revert to the last saved state (that is, the lighting that was in effect the last time you opened the dialog box or clicked on Apply).

Using Styles

The Style Attributes dialog box is opened by clicking on the Styles... button in the Attributes tab frame of the Display Grid dialog box. It controls the appearance of faces, edges, and nodes that are displayed using the Display Grid dialog box. To modify the attributes of a certain type of face, edge, or node (e.g., unmeshed), select the appropriate item in the Styles list, change the parameters, and click Apply. You will see the effect of these changes the next time you display the grid.

Table 21.1:  Default Style Attributes

Styles

Faces Visible

Edges Color

Nodes Visible

Color

Weight

Visible

Color

Symbol

Size

left-handed

yes

red

yes

red

2

yes

red

o

0.5

refine

yes

magenta

yes

yellow

2

yes

magenta

o

0.5

free

yes

cyan

yes

foreground

2

yes

orange

o

0.5

multi

yes

yellow

yes

foreground

2

yes

magenta

o

0.5

unmeshed

no

–

yes

orange

2

yes

red

o

0.5

unused

no

–

yes

green

2

yes

green

x

0.5

mark

yes

magenta

yes

yellow

2

yes

magenta

o

0.5

tag

yes

magenta

yes

yellow

2

yes

magenta

o

0.5

face-size

yes

blue

yes

foreground

1

no

–

–

–

cell-size

no

–

yes

red

1

no

–

–

–

face-quality

yes

red

yes

foreground

1

no

–

–

–

cell-quality

no

–

yes

red

1

no

–

–

–



Release 18.2 - © ANSYS, Inc. All rights reserved.