All display-methods on HMeshes offer the possibility of adaptive visualization with regard to various thresholds and error estimates which have to be provided by the user in a prescribed way or can also for example in case of lens-estimators be calculated by default-routines. See the example-HMesh-interfaces for further details. Without any error-estimates the HMesh is always drawn up to the level given by its level_of_interest entry, whereas with error-estimates some elements may be extracted on a higher hierarchy-level without losing essential detail-information but gaining a speedup because of this partial inspection of the mesh.
The HMesh2d instance hmesh is rendered on the standard device in a default manner. In patch and texture mode the elements are displayed as flat shaded patches, in grid mode the edges of the elements are drawn. If geometry-estimators or lens-estimators are provided, these are used for adaptive visualization. An options-layer allows to activate/deactivate the lens-adaptivity.
The options-layer shown in Figure 4 allows changing diplay-parameters.
Figure 4: Options Layer for HMesh2d-vect-disp
The ruler distance determines the z-shift of all arrows, the mesh-width is the distance between the arrows. Length gives a scale-factor which is applied to each function-value-vector. If the resulting length is bigger than the value max length, the vector is shortened to this value. If lens-estimators are provided, a lens can be activated/deactivated and a final ruler called lens factor allows to enlargen the mesh-width automatically in case of activated lens. An example is shown in figure 5.
Figure 5: example of "vect-disp"
Figure 6: Example of "rgb-disp"
Figure 7: example of "shrink-disp"
Figure 10: Options Layer for HMesh2d-geometry-graph-disp
Figure 9: example of "geometry-graph-disp"
Figure: Options Layer for HMesh2d-geometry-graph-disp
Figure 11: example of "function-graph-disp"
These two display-methods draw isolines and iso-patches on the mesh. In grid-mode "isoline-disp" draws equidistant isolines with respect to the actual colorbar, that means line-distance, colors and min/max-values are taken from the colorbar. "isoline-select-disp" just draws selected isolines. In patch-mode iso-patches are drawn, the select-display version additionally draws the selected lines. The following figure shows the options-layer for this method in texture mode. In other modes some buttons/rulers are hidden, if they are not used.
Figure 12: Options Layer for HMesh2d-isoline-disp
In texture-mode the surface of the mesh is patched with textures which are able to react on light-sources. This ability can be activated/deactivated by the button Texture with lightmodel. The button modus activates/deactivates the ruler graph-height and an additional extruding of the mesh in z-direction according to a multiple of the nodal function-values, the factor given by graph-height. The button hp disp activates the remaining two rulers Texel per Pixel and p-deg. This mode draws higher polynomial textures on each element. The polynomial degree and resolution of the textures are determined by these rulers. An example of this display-method is shown in Figure 13.
Figure 13: example of "isoline-disp"
Figure 14: Options Layer for HMesh2d-debug-disp
The resulting element and its parents-path to a macro-element is highlighted by white boundaries. Child-elements are shifted from their parents in z-direction according to the value of the ruler level-scale. Additional information is shown for the actual element by activating one of the buttons show indices, show coord's or show function-values. The drawing of the mesh can be enabled/disabled by the button show mesh. An example is shown in Figure 15.
Figure 15: example of "debug-disp"
Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.