~jeko-ios-software/openracing/trackgen2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/***************************************************************************

    file                 : easymesh.h
    created              : Sun Feb 25 22:50:07 /etc/localtime 2001
    copyright            : Bojan NICENO & Eric EspiƩ
    email                : niceno@univ.trieste.it Eric.Espie@torcs.org
    version              : $Id: easymesh.h,v 1.3 2002/06/09 20:48:59 torcs Exp $

 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
 
/** @file    
    		
    @author	<a href=mailto:torcs@free.fr>Eric Espie</a>
    @version	$Id: easymesh.h,v 1.3 2002/06/09 20:48:59 torcs Exp $
*/

#ifndef _EASYMESH_H_
#define _EASYMESH_H_

struct nod
{
    double x, y, z, F;
			
    double sumx, sumy;
    int    Nne;

    int mark;             /* is it off */

    int next;             /* next node in the boundary chain */
    int chain;            /* on which chains is the node */
    int inserted;

    int new_numb;         /* used for renumeration */
};

extern struct nod *point;

struct seg
{
    int n0, n1;
    int N;
    int chain;
    int bound;
    int mark;
};

extern struct seg *segment;

extern void GenerateTerrain(tTrack *track, void *TrackHandle, char *outfile, FILE *AllFd, int noElevation);

extern int Nc;
extern int Fl;

#endif /* _EASYMESH_H_ */