1 |
/* Copyright (c) 1996 Regents of the University of California */ |
2 |
|
3 |
/* SCCSid "$SunId$ LBL" */ |
4 |
|
5 |
/*------------------------------------------------------------------------- |
6 |
|
7 |
Triangle Bounder/Smoother for POV-Ray |
8 |
Copyright (c) 1993 Steve Anger |
9 |
|
10 |
A number of C routines that can be used to generate POV-Ray ray tracer |
11 |
files from triangle data. Supports generation of smooth triangles and an |
12 |
optimal set of bounding shapes for much faster traces. This program may be |
13 |
freely modified and distributed. |
14 |
|
15 |
CompuServe: 70714,3113 |
16 |
YCCMR BBS: (708)358-5611 |
17 |
|
18 |
--------------------------------------------------------------------------*/ |
19 |
|
20 |
#ifndef __RAYOPT_H |
21 |
#define __RAYOPT_H |
22 |
|
23 |
#include "vect.h" |
24 |
|
25 |
void opt_set_format (int format); |
26 |
void opt_set_fname (char *pov_name, char *inc_name); |
27 |
void opt_set_quiet (int quiet); |
28 |
void opt_set_bound (int bound); |
29 |
void opt_set_smooth (float smooth); |
30 |
void opt_set_vert (unsigned vert); |
31 |
void opt_set_dec (int dec); |
32 |
|
33 |
void opt_set_color (float red, float green, float blue); |
34 |
void opt_set_texture (char *texture_name); |
35 |
void opt_set_transform (Matrix mat); |
36 |
void opt_clear_transform(); |
37 |
int opt_add_tri (float ax, float ay, float az, |
38 |
float bx, float by, float bz, |
39 |
float cx, float cy, float cz); |
40 |
|
41 |
void opt_write_pov (char *obj_name); |
42 |
void opt_write_file (char *obj_name); |
43 |
void opt_write_box (char *obj_name); |
44 |
void opt_finish (void); |
45 |
|
46 |
void opt_get_limits (float *min_x, float *min_y, float *min_z, |
47 |
float *max_x, float *max_y, float *max_z); |
48 |
void opt_get_glimits (float *min_x, float *min_y, float *min_z, |
49 |
float *max_x, float *max_y, float *max_z); |
50 |
unsigned opt_get_vert_cnt (void); |
51 |
unsigned opt_get_tri_cnt (void); |
52 |
float opt_get_index (void); |
53 |
unsigned opt_get_bounds (void); |
54 |
|
55 |
void abortmsg (char *msg, int exit_code); |
56 |
void add_ext (char *fname, char *ext, int force); |
57 |
void cleanup_name (char *name); |
58 |
|
59 |
#endif |