ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/tmesh.h
Revision: 2.2
Committed: Wed Jul 24 13:07:46 1996 UTC (27 years, 10 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.1: +11 -0 lines
Log Message:
added check for flat triangles with normals

File Contents

# Content
1 /* Copyright (c) 1994 Regents of the University of California */
2
3 /* SCCSid "$SunId$ LBL" */
4
5 /*
6 * Header file for triangle mesh routines using barycentric coordinates
7 */
8
9 #define TCALNAME "tmesh.cal" /* the name of our auxiliary file */
10
11 typedef struct {
12 int ax; /* major axis */
13 FLOAT tm[2][3]; /* transformation */
14 } BARYCCM;
15
16 #ifndef COSTOL
17 #define COSTOL 0.99985 /* cosine of tolerance for smoothing */
18 #endif
19
20 /* flat_tri() return values */
21 #define ISBENT 0 /* is not flat */
22 #define ISFLAT 1 /* is flat */
23 #define RVBENT 2 /* reversed and not flat */
24 #define RVFLAT 3 /* reversed and flat */
25 #define DEGEN -1 /* degenerate (zero area) */