Next: Affiliate Projects
Up: HMesh3d
Previous: I/O Methods on HMesh3d
- (HMESH3D *)GRAPE(hmesh, "get-bnd-box")(xmin,xmax,ymin,ymax,zmin,zmax)
-
HMESH3D *hmesh
double *xmin,*xmax,*ymin,*ymax,*zmin,*zmax
Determines the bounding-box of the instance mesh and returns it by its
extremal coordinates. This method is faster than the Mesh3d-version
because only macro-elements have to be inspected.
- (HMESH3D *)GRAPE(hmesh, "search")(v, c, el)
-
HMESH3D *hmesh
VEC3 v
double *c
HELEMENT2D **el
This method searches within the hmesh for a given point with
world-coordinates v.
If el is not NULL local search is performed starting at the element el. This
means walking up in the hierarchy until an element is found, which contains v,
and then walking down to the wanted element. If el is NULL at the beginning,
hierarchical search is applied by walking over the macro-elements and then
walking down the hierarchy.
If successful, the method returns in el the element on level level_of_interest
which contains the given point v,
and in c the local coordinates of this point. The
pointer varc has to be allocated with enough memory before calling the
method.
If the search failed, el will be NULL.
The search relies on the HMesh3d-method "select_child".
On one hand this means
that this pointer has to be filled in the interface at least with the
default-method "g_hmesh3d_def_select_child". On the other hand
it implies that
implementing this method efficiently is a possibility of speeding up the
search.
- (HMESH3D *)GRAPE(hmesh, "find-pick-intersec")(v,u,w,el,c)
-
HMESH3D *hmesh
VEC3 v
double u,w
HELEMENT2D **el
double *c
This method determines for given
screen-coordinates u,w the point on the mesh which is hit by these
pick-coordinates. The world coordinates of this point are returned in v, the
element on level meshlevel_of_interest
which contains this point and its
local-coordinates are returned in el and c. The only difference
to the Mesh3d-version is the use of improved hierarchical searching.
- (HMESH3D *)GRAPE(hmesh, "hmesh-interactive-send")()
-
HMESH3D *hmesh
This method sets up the project uif-hm3, which is described below.
Next: Affiliate Projects
Up: HMesh3d
Previous: I/O Methods on HMesh3d
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.