next up previous contents
Next: Display Methods on HMesh3d Up: HMesh3d Previous: HMesh3d

Memory Methods on HMesh3d

 

     

(HMESH3D *)GRAPE(HMesh3d, "new-instance")(name)

CLASS *HMesh3d char *name

This method creates a new instance of class HMesh3d with name "name" and allocates the necessary memory. The function pointers first_element and next_element are set to default procedures.

     

GRAPE(hmesh, "free")()

HMESH3D *hmesh;
The associated memory of the instance variables is freed and the instance is deleted.

     

GRAPE(hmesh, "softcopy")(copy)

HMESH3D *hmesh;
HMESH3D *copy;
Make a softcopy of a HMesh3d instance. If copy is not NULL then this instance is used to store the copy otherwise a new HMesh3d instance is created.

   

(HMESH3D *)GRAPE(hmesh, "add-function")(f_hdata)

HMESH3D *hmesh
F_HDATA3D *f_hdata

Adds the function given by f_hdata by copying and inserting it as first entry in the linked list given by hmeshtex2html_wrap_inline3530f_data. Finally the function-selector is updated.

   

(HMESH3D *)GRAPE(hmesh, "remove-function")(name)

HMESH3D *hmesh
char *name

This method frees the first entry of the linked list hmeshtex2html_wrap_inline3530f_data which corresponds to the given string name. The function-selector is updated afterwards.

 figure2220

   

(HMESH3D *)GRAPE(hmesh, "get-object")(obj,t)

HMESH3D *hmesh,*obj
double t

This method returns the instance hmesh at time t. This happens by softcopying hmesh and its function-selector to the pointer obj, setting obj's time to t and returning obj. If obj already is filled, its level_of_interest and threshold are kept. (To be precise: hmesh's parameters are set to these values.)


next up previous contents
Next: Display Methods on HMesh3d Up: HMesh3d Previous: 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.