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

Comparing ray/src/common/mesh.h (file contents):
Revision 2.1 by greg, Tue Mar 11 17:08:55 2003 UTC vs.
Revision 2.2 by greg, Wed Mar 12 04:59:04 2003 UTC

# Line 26 | Line 26
26   * never generates 0, so we can use this for unspecified normals.
27   *
28   * Vertex ID's are encoded using the bottom 8 bits of a 4-byte integer
29 < * to index a vertex in a patch indicated by the 20 bits above (9-29).
30 < * For triangle ID's, the top 10 bits (11-31) indicate the patch, and
31 < * the 10th bit indicates whether the triangle joins patches.
29 > * to index a vertex in a patch indicated by the 22 bits above (8-29).
30 > * For triangle ID's, the top 22 bits (10-31) indicate the patch, and
31 > * the bit 9 (0x200) indicates whether the triangle joins patches.
32   * If not, then the bottom 9 bits index into the local PTri array.
33 < * If it's a joiner, then the 9th bit indicates whether the triangle joins
33 > * If it's a joiner, then the 8th bit indicates whether the triangle joins
34   * two patches, in which case the bottom 8 bits index the PJoin2 array.
35   * Otherwise, the bottom 8 bits index the PJoin1 array.
36   *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines