ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/mgflib/rayopt.h
Revision: 1.4
Committed: Wed Sep 5 01:36:37 2007 UTC (16 years, 8 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad4R0, rad3R9
Changes since 1.3: +3 -7 lines
Log Message:
Copyright fixes

File Contents

# User Rev Content
1 greg 1.4 /* RCSid: $Id: rayopt.h,v 1.3 2003/06/07 01:11:17 schorsch Exp $ */
2 greg 1.1 /*-------------------------------------------------------------------------
3    
4     Triangle Bounder/Smoother for POV-Ray
5 greg 1.4 by Steve Anger 1993
6 greg 1.1
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 greg 1.4 optimal set of bounding shapes for much faster traces.
10 greg 1.1
11     --------------------------------------------------------------------------*/
12    
13 schorsch 1.3 #ifndef _MGF_RAYOPT_H
14     #define _MGF_RAYOPT_H
15     #ifdef __cplusplus
16     extern "C" {
17     #endif
18    
19 greg 1.1
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 schorsch 1.3
57     #ifdef __cplusplus
58     }
59 greg 1.1 #endif
60 schorsch 1.3 #endif /* _MGF_RAYOPT_H */
61