| 1207 | } |
| 1208 | |
| 1209 | bool TSStatic::castRayRendered(const Point3F& start, const Point3F& end, RayInfo* info) |
| 1210 | { |
| 1211 | if (!mShapeInstance) |
| 1212 | return false; |
| 1213 | |
| 1214 | // Cast the ray against the currently visible detail |
| 1215 | RayInfo localInfo; |
| 1216 | if (info && info->generateTexCoord) |
| 1217 | localInfo.generateTexCoord = true; |
| 1218 | bool res = mShapeInstance->castRayOpcode(mShapeInstance->getCurrentDetail(), start, end, &localInfo); |
| 1219 | |
| 1220 | if (res) |
| 1221 | { |
| 1222 | *info = localInfo; |
| 1223 | info->object = this; |
| 1224 | return true; |
| 1225 | } |
| 1226 | |
| 1227 | return false; |
| 1228 | } |
| 1229 | |
| 1230 | bool TSStatic::buildPolyList(PolyListContext context, AbstractPolyList* polyList, const Box3F& box, const SphereF&) |
| 1231 | { |
no test coverage detected