#include <vegetable_clip_block.h>
Inheritance diagram for NL3D::CVegetableClipBlock:
Nevrax France
Definition at line 52 of file vegetable_clip_block.h.
Fast clipping. | |
bool | clip (const std::vector< CPlane > &pyramid) |
void | extendBBoxOnly (const CVector &vec) |
void | extendSphere (const CVector &vec) |
void | updateSphere () |
NLMISC::CAABBox | _BBox |
NLMISC::CBSphere | _BSphere |
bool | _Empty |
Public Member Functions | |
CVegetableClipBlock () | |
Constructor. | |
Data Fields | |
CTessNodeList * | Next |
CTessNodeList * | Prec |
Private Attributes | |
uint | _NumIgs |
CVegetableClipBlock * | _RenderNext |
CTessList< CVegetableSortBlock > | _SortBlockList |
Friends | |
class | CVegetableManager |
|
Constructor.
Definition at line 36 of file vegetable_clip_block.cpp. References _NumIgs, and _RenderNext.
00037 { 00038 _Empty= true; 00039 _RenderNext= NULL; 00040 _NumIgs= 0; 00041 } |
|
Definition at line 82 of file vegetable_clip_block.cpp. References _BSphere, NLMISC::CBSphere::clipBack(), and uint. Referenced by NL3D::CVegetableManager::render().
|
|
Definition at line 45 of file vegetable_clip_block.cpp. References NLMISC::CAABBox::extend(), and NLMISC::CAABBox::include(). Referenced by NL3D::CVegetableManager::addInstance(), and extendSphere().
|
|
Definition at line 62 of file vegetable_clip_block.cpp. References _BSphere, NLMISC::CBSphere::Center, extendBBoxOnly(), NLMISC::CBSphere::Radius, NLMISC::CAABBox::setCenter(), NLMISC::CAABBox::setHalfSize(), and updateSphere(). Referenced by NL3D::CVegetableManager::addInstance().
00063 { 00064 if(_Empty) 00065 { 00066 _Empty= false; 00067 _BBox.setCenter(vec); 00068 _BBox.setHalfSize(CVector::Null); 00069 _BSphere.Center= vec; 00070 _BSphere.Radius= 0; 00071 } 00072 else 00073 { 00074 extendBBoxOnly(vec); 00075 updateSphere(); 00076 } 00077 00078 } |
|
Definition at line 55 of file vegetable_clip_block.cpp. References _BSphere, NLMISC::CBSphere::Center, NLMISC::CAABBox::getCenter(), NLMISC::CAABBox::getRadius(), and NLMISC::CBSphere::Radius. Referenced by NL3D::CVegetableManager::addInstance(), and extendSphere().
|
|
Definition at line 62 of file vegetable_clip_block.h. |
|
Definition at line 68 of file vegetable_clip_block.h. |
|
Definition at line 69 of file vegetable_clip_block.h. Referenced by clip(), extendSphere(), and updateSphere(). |
|
Definition at line 67 of file vegetable_clip_block.h. |
|
Definition at line 89 of file vegetable_clip_block.h. Referenced by NL3D::CVegetableManager::createIg(), CVegetableClipBlock(), and NL3D::CVegetableManager::deleteIg(). |
|
Definition at line 92 of file vegetable_clip_block.h. Referenced by CVegetableClipBlock(), and NL3D::CVegetableManager::render(). |
|
Definition at line 86 of file vegetable_clip_block.h. Referenced by NL3D::CVegetableManager::createSortBlock(), NL3D::CVegetableManager::deleteClipBlock(), NL3D::CVegetableManager::deleteSortBlock(), and NL3D::CVegetableManager::render(). |
|
|
Definition at line 43 of file tess_list.h. Referenced by NL3D::CTessNodeList::CTessNodeList(). |