- Timestamp:
- 11/16/06 19:41:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/IntersectableWrapper.cpp
r1758 r1763 92 92 93 93 94 int TriangleIntersectable::GetRandomEdgePoint(Vector3 &point, 95 Vector3 &normal) 96 { 97 int edge = Random(3); 98 99 Vector3 a = mItem.mVertices[edge]; 100 Vector3 b = mItem.mVertices[(edge + 1) % 3]; 101 102 const float factor = RandomValue(0.0f, 1.0f); 103 104 point = a * factor + b * factor; 105 normal = mItem.GetNormal(); 106 107 return edge; 108 } 109 110 94 111 KdIntersectable::KdIntersectable(KdNode *item, const AxisAlignedBox3 &box) : 95 112 IntersectableWrapper<KdNode *>(item)
Note: See TracChangeset
for help on using the changeset viewer.