File: mesh_t.h

package info (click to toggle)
xmorph 1%3A20150712-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,404 kB
  • sloc: ansic: 24,887; sh: 7,755; cpp: 1,231; makefile: 524; sed: 16
file content (24 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

#ifndef _MESH_T_H__INCLUDED_
#define _MESH_T_H__INCLUDED_

#define MESHLABEL_T int
#define MESHPOINTSELECTED (-1)

typedef struct {
  long    nx;   /* number of mesh points in the x-direction */
  long    ny;   /* number of mesh points in the y-direction */
  double *x;    /* 2D array of mesh point x-values */
  double *y;    /* 2D array of mesh point y-values */
  MESHLABEL_T *label; /* any point may be labelled , for grouping points  etc 
	      the most important labels are 
	     0 == normal point
	     -1 == selected point */
  unsigned int changed; /*if it has been changed since the last saving */
  /* the reference count: good for porting libmorph in python (or 
     any language that needs garbage collecting)
     for easier use in GTK . read README.libmorph */
  unsigned int reference_counting;
} MeshT;

#endif /* _MESH_T_H__INCLUDED_ */