next up previous contents index
Next: Curves Up: Geometry Classes Previous: Geometry Classes

Points

 

We have no special class Point. Since this would cause too much overhead we suggest the usage of the structure VEC2 or FVEC2 in two space, VEC3 or FVEC3 in three space and VEC4 or FVEC4 in four space when working with single points. Be aware that these structures are no GRAPE classes, they are defined as

           

     typedef FVEC2 float[2];
     typedef VEC2 double[2];
     typedef FVEC3 float[3];
     typedef VEC3 double[3];
     typedef FVEC4 float[4];
     typedef VEC4 double[4];

The float types are no longer supported by any function or method, they just exist.

Clouds of points should be stored in the coordinate list of structures of class Triang1d, Triang2d or Triang3d. For this purpose the method "point-list-alloc" allocates only the coordinate lists and ignores the connectivity. Using the display method "points-disp" one can visualize the points as little spheres with variable radius. Surely this method also works on regular triangulations.

VEC2, VEC3 and VEC4 are supported by a huge number of utility functions, which are listed in section 10.2.

The xdr functions for VEC2, VEC3 and VEC4 are g_xdr_vec2, g_xdr_vec3 and g_xdr_vec4, respectively (see 5.7).



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.