next up previous contents
Next: HMesh2d Up: Mesh2d Previous: Display Methods on Mesh2d

Other Methods on Mesh2d

  GRAPE(mesh, "xdr")(xdr)

XDR *xdr
This method implements XDR interface of GRAPE for the class Mesh2d. Of course neither function pointers nor the underlying user data can be handled, but all scalar values are converted, so it is an abstract method. To use the read/write facilities of GRAPE, one has to overload this method.

   

(MESH2D *)GRAPE(mesh, "get-info")(list)

MESH2D *mesh
XLIST *list

Fills list with structure-dependent information-strings. Actually it calls "GenMesh-get-info" and adds the information meshtex2html_wrap_inline3530dimension_of_world.

   

(GLIST *)GRAPE(mesh, "get-function-list")()

MESH2D *mesh

Generates list of functions including default-functions.

   

(MESH2D *)GRAPE(mesh, "get-min-max")(pmin,pmax)

MESH2D *mesh
double *pmin,pmax

Evaluates the current data-function in all nodes of the mesh and determines the extremal values of these.

   

(MESH2D *)GRAPE(mesh, "value-min-max-send")()

MESH2D *mesh

This method calls "get-min-max" and prints the values to stdout.

   

(MESH2D *)GRAPE(mesh, "get-bnd-box")(xmin,xmax,ymin,ymax,zmin,zmax)

MESH2D *mesh
double *xmin,*xmax,*ymin,*ymax,*zmin,*zmax

Determines the bounding-box of the instance mesh and returns it by its extremal coordinates.

   

(MESH2D *)GRAPE(mesh, "search")(v,c,el)

MESH2D *mesh
VEC3 v
double *c
ELEMENT2D **el

This method searches within a mesh for a given point with world-coordinates v. The search applies neighbourhood-relationship if this is provided by an elementtex2html_wrap_inline3530descrtex2html_wrap_inline3530neighbour function. Otherwise it uses straightforward mesh-traversal. If successful, the method returns in el the element which contains the given point and in c the local coordinates of this point. The pointer c has to be allocated with enough memory before calling the method. If the search failed, el will be NULL.

   

(MESH2D *)GRAPE(mesh, "find-pick-intersec")(v,u,w,el,c)

MESH2D *mesh
VEC3 v
double u,w
ELEMENT2D **el
double *c

For a mesh with dimension_of_world equal 2 this method determines for given screen-coordinates u,w which point on the mesh is hit by these pick-coordinates. The world coordinates of this point are returned in v, the element which contains this point and its local-coordinates are returned in el and c.


next up previous contents
Next: HMesh2d Up: Mesh2d Previous: Display 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.