| 263 | } |
| 264 | |
| 265 | bool Forest::buildPolyList( PolyListContext context, AbstractPolyList* polyList, const Box3F &box, const SphereF &sphere ) |
| 266 | { |
| 267 | if ( context == PLC_Decal ) |
| 268 | return false; |
| 269 | |
| 270 | // Get all ForestItem(s) within the box. |
| 271 | Vector<ForestItem> trees; |
| 272 | if ( mData->getItems( box, &trees ) == 0 ) |
| 273 | return false; |
| 274 | |
| 275 | polyList->setObject(this); |
| 276 | |
| 277 | bool gotPoly = false; |
| 278 | |
| 279 | for ( U32 i = 0; i < trees.size(); i++ ) |
| 280 | gotPoly |= trees[i].buildPolyList( polyList, box, sphere ); |
| 281 | |
| 282 | return gotPoly; |
| 283 | } |
| 284 | |
| 285 | bool ForestItem::buildPolyList( AbstractPolyList* polyList, const Box3F &box, const SphereF &sphere ) const |
| 286 | { |
no test coverage detected