next up previous contents
Next: Other Methods on Mesh2d Up: Mesh2d Previous: Memory Methods on Mesh2d

Display Methods on Mesh2d

   

(MESH2D *)GRAPE(mesh, "display")()

MESH2D *mesh

The Mesh2d instance mesh 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.

           

(MESH2D *)GRAPE(mesh, "isoline")(select, highscal, colorbar)
(MESH2D *)GRAPE(mesh, "isoline-disp")()
(MESH2D *)GRAPE(mesh, "isoline-select-disp")()

MESH2D *mesh
int select
double highscal
COLORBAR* colorbar

These two display-methods draw isolines and iso-patches on the mesh. For having nearly the same functionality the drawing is done in both cases by one method "isolines" just differing in the flag select: select=0 means call from "isoline-disp", select=1 indicates call from "isoline-select-disp". In grid-mode "isoline-disp" draws equidistant isolines with respect to the colorbar, that means line-distance, colors and min/max-values are taken from colorbar. "isoline-select" just draws selected isolines. In patch-mode iso-patches are drawn, the select-display version additionally draws the selected lines. Texture mode offers the same functionality as the HMesh2d-version, see 5.3.2 for details. All modes additionally allow to extrude the mesh in z-direction according to the function-values. By this a simultaneous function-graph/isoline-display can be obtained.

       

(MESH2D *)GRAPE(mesh, "vect")(double length, double width, double dist,
double color_scal, double offset_scal, double min, double max)
(MESH2D *)GRAPE(mesh, "vect-disp")()

MESH2D *mesh

These methods offer the same functionality as the Fe2d-analogon.

   

(MESH2D *)GRAPE(mesh, "function-graph-disp")()

MESH2D *mesh

This method draws the instance mesh not as a plain mesh but the nodal z-coordinates are shifted by a multiple of the nodal function-values. The factor of this multiple can be changed in the options-layer for this display-method.

   

(MESH2D *)GRAPE(mesh, "geometry-graph-disp")()

MESH2D *mesh

Similar to the "isoline-disp" method, this method also draws isolines/iso-patches on the mesh. Instead of corresponding to the current function, these isolines belong to the z-coordinate-function of the mesh. Thus real geometry-isolines are drawn. This method is faster than using the function-selector and choosing the function z-coordinate, which gives the same result.

   

(MESH2D *)GRAPE(mesh, "shrink-disp")()

MESH2D *mesh

Similar to the standard display-method this one draws each element by a shrinked patch or shrinked polygon depending on the grid-patch mode. The shrink-factor can be changed by a corresponding ruler.


next up previous contents
Next: Other Methods on Mesh2d Up: Mesh2d Previous: Memory Methods on Mesh2d

SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.