Rev | Line | |
---|
[37] | 1 | /* |
---|
| 2 | |
---|
| 3 | Brian Curless |
---|
| 4 | |
---|
| 5 | Computer Graphics Laboratory |
---|
| 6 | Stanford University |
---|
| 7 | |
---|
| 8 | --------------------------------------------------------------------- |
---|
| 9 | |
---|
| 10 | Copyright (1997) The Board of Trustees of the Leland Stanford Junior |
---|
| 11 | University. Except for commercial resale, lease, license or other |
---|
| 12 | commercial transactions, permission is hereby given to use, copy, |
---|
| 13 | modify this software for academic purposes only. No part of this |
---|
| 14 | software or any derivatives thereof may be used in the production of |
---|
| 15 | computer models for resale or for use in a commercial |
---|
| 16 | product. STANFORD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND |
---|
| 17 | CONCERNING THIS SOFTWARE. No support is implied or provided. |
---|
| 18 | |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #ifndef _OCC_ |
---|
| 23 | #define _OCC_ |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | #include "defines.h" |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | typedef float vec3f[3]; |
---|
| 30 | typedef float vec2f[2]; |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | struct BBox3f { |
---|
| 34 | vec3f fll, nur; |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | struct BBox2f { |
---|
| 39 | vec2f fll, nur; |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | struct OrthoShear { |
---|
| 43 | int axis; |
---|
| 44 | int flip; |
---|
| 45 | float sx; |
---|
| 46 | float sy; |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | struct OccElement { |
---|
| 50 | ushort value; |
---|
| 51 | ushort totalWeight; |
---|
| 52 | }; |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | struct OccElementDbl { |
---|
| 56 | double value; |
---|
| 57 | double totalWeight; |
---|
| 58 | }; |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | enum {X_AXIS, Y_AXIS, Z_AXIS}; |
---|
| 62 | |
---|
| 63 | #define FAR_AWAY_DEPTH -1e20 |
---|
| 64 | #define IS_VALID_DEPTH(z) (z > FAR_AWAY_DEPTH) |
---|
| 65 | #define MAX_DEPTH_DIFFERENCE 0.004 |
---|
| 66 | #define CHUNK_SIZE 1000000 |
---|
| 67 | #define DEPTH_TREE_GRANULARITY 8 |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.