1
/*
2
 *=============================================================================
3
 *
4
 *
5
 *  Copyright (C) 2009  Anders Gidenstam (anders(at)gidenstam.org)
6
 *  Copyright (C) 2009  Ronald Jensen    (ron(at)jentronics.com)
7
 *  http://www.gidenstam.org
8
 *  http://www.jentronics.com
9
 *
10
 *  This program is free software; you can redistribute it and/or modify
11
 *  it under the terms of the GNU General Public License as published by
12
 *  the Free Software Foundation; either version 3 of the License, or
13
 *  (at your option) any later version.
14
 *
15
 *  This program is distributed in the hope that it will be useful,
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 *  GNU General Public License for more details.
19
 *
20
 *  You should have received a copy of the GNU General Public License
21
 *  along with this program; if not, write to the Free Software
22
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
 *=============================================================================
24
 */
25
26
#ifndef MODELER_PROTO_H
27
28
/* Funtions in modeler.c */
29
int InitAC(FILE *ofp, int kids, int shiny);
30
int WriteBody(FILE *ofp, struct BODY *body, struct SYNTHS *synths, int Quads);
31
int WriteWing(FILE *ofp, struct WGPLNF *wing, struct AIRFOIL *airfoil, char *name, double X, double Z, int Quads);
32
int WriteFin(FILE *ofp, struct WGPLNF *wing, struct AIRFOIL *airfoil, char *name, double X, double Z, int vertup, int Quads);
33
int WritePropellers(FILE *ofp, struct PROPWR *propwr);
34
35
/* Functions in color.c */
36
int GetShine(double roughness); /* in inches */
37
int GetSpecular(double ired, double igrn, double iblu, int shiny, double *ored, double *ogrn, double *oblu);
38
39
/* Functions in naca.c */
40
int NacaFoil(char *name, struct AIRFOIL *foil, int stations);
41
42
43
/* Functions in body.c */
44
/******
45
 *
46
 * S = Area of rib,  P = Perimiter of rib
47
 * XR = X Radius, ZR = Z Radius
48
 * XC = X Center,  ZC = Z Center
49
 *
50
 ******/
51
RIB3D *GetRib(double S, double P, double XR, double ZR, double XC, double YC, double ZC, int points, FILE *ofp);
52
53
#define MODELER_PROTO_H
54
#endif