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