| 108 | } |
| 109 | |
| 110 | bool decompPoly::isInside(decompTri &tri, U8 vertIdx) |
| 111 | { |
| 112 | Point3F a(mVertList[tri.getVert(0)]); |
| 113 | Point3F b(mVertList[tri.getVert(1)]); |
| 114 | Point3F c(mVertList[tri.getVert(2)]); |
| 115 | Point3F p(mVertList[vertIdx]); |
| 116 | |
| 117 | return (sameSide(p,a,b,c) && sameSide(p,b,a,c) && sameSide(p,c,a,b)); |
| 118 | } |
| 119 | |
| 120 | U8 decompPoly::leftmost() |
| 121 | { |