ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/sm.h
(Generate patch)

Comparing ray/src/hd/sm.h (file contents):
Revision 3.4 by gwlarson, Tue Oct 6 18:16:54 1998 UTC vs.
Revision 3.5 by gwlarson, Wed Nov 11 12:05:37 1998 UTC

# Line 17 | Line 17
17   #define FALSE 0
18   #endif
19  
20 < #define S_REPLACE_EPS 0.06
21 < #define S_REPLACE_SCALE 10.0
20 > #define S_REPLACE_EPS 0.06        /* if (distance on sphere between sample
21 >                                     and a base point) < S_REPLACE_EPS,
22 >                                     replace base
23 >                                     */
24 > #define S_REPLACE_SCALE (5.*5.)   /* if (distance to new point squared) is
25 >                                     > (triangle edge length squared*
26 >                                     S_REPLACE_SCALE):for all edges/triangle
27 >                                     vertices: new point is puncture
28 >                                     point: dont add
29 >                                   */
30 > #define S_REPLACE_TRI 2e-8              /* .052 radians to the sixth power */
31  
32   #define SQRT3_2 0.8660254
33  
# Line 26 | Line 35
35   #define SM_EXTRA_POINTS 8
36   #define SM_EXTRA_VERTS  SM_EXTRA_POINTS
37  
38 < #define SM_INC_PERCENT 0.60
38 > #define SM_INC_PERCENT 0.60            /* If number of new triangles added
39 >                                          since last full redraw is >
40 >                                          (SM_INC_PERCENT * total triangles)
41 >                                          do full redraw instead of incremental
42 >                                          */
43 >
44   #define SM_VIEW_FRAC   0.1
45  
46  
# Line 217 | Line 231 | extern VIEW Current_View;
231   extern int Pick_tri,Picking,Pick_samp;
232   extern FVECT Pick_point[500],Pick_origin,Pick_dir;
233   extern FVECT Pick_v0[500],Pick_v1[500],Pick_v2[500];
234 + extern int Pick_q[500];
235   extern FVECT P0,P1,P2;
236   extern int Pick_cnt;
237   extern FVECT FrustumNear[4],FrustumFar[4];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines