-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodeler_proto.h
More file actions
55 lines (47 loc) · 2.1 KB
/
modeler_proto.h
File metadata and controls
55 lines (47 loc) · 2.1 KB
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
/*
*=============================================================================
*
*
* Copyright (C) 2009 Anders Gidenstam (anders(at)gidenstam.org)
* Copyright (C) 2009 Ronald Jensen (ron(at)jentronics.com)
* http://www.gidenstam.org
* http://www.jentronics.com
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*=============================================================================
*/
#ifndef MODELER_PROTO_H
/* Funtions in modeler.c */
int InitAC(FILE *ofp, int kids, int shiny);
int WriteBody(FILE *ofp, struct BODY *body, struct SYNTHS *synths, int Quads);
int WriteWing(FILE *ofp, struct WGPLNF *wing, struct AIRFOIL *airfoil, char *name, double ALI, double X, double Z, int Quads);
int WriteFin(FILE *ofp, struct WGPLNF *wing, struct AIRFOIL *airfoil, char *name, double X, double Z, int vertup, int Quads);
int WritePropellers(FILE *ofp, struct PROPWR *propwr);
/* Functions in color.c */
int GetShine(double roughness); /* in inches */
int GetSpecular(double ired, double igrn, double iblu, int shiny, double *ored, double *ogrn, double *oblu);
/* Functions in naca.c */
int NacaFoil(char *name, struct AIRFOIL *foil, int stations);
/* Functions in body.c */
/******
*
* S = Area of rib, P = Perimiter of rib
* XR = X Radius, ZR = Z Radius
* XC = X Center, ZC = Z Center
*
******/
RIB3D *GetRib(double S, double P, double XR, double ZR, double XC, double YC, double ZC, int points, FILE *ofp);
#define MODELER_PROTO_H
#endif