#include <u3d_grid.hpp>
|
static unsigned | m_maxCellID |
|
U3dGrid::U3dGrid |
( |
const U3dBox * |
modelBox | ) |
|
Create grid for given model volume (given minimal cell size is set by U3D_MIN_CELL_SIZE - see u3d_model_defines.hpp). Initial grid will have the only cell without any parameters.
virtual U3dGrid::~U3dGrid |
( |
| ) |
|
|
virtual |
U3dGrid::U3dGrid |
( |
const U3dBox * |
modelBox | ) |
|
Create grid for given model volume (given minimal cell size is set by U3D_MIN_CELL_SIZE - see u3d_model_defines.hpp). Initial grid will have the only cell without any parameters.
virtual U3dGrid::~U3dGrid |
( |
| ) |
|
|
virtual |
Divide given cell into 8 parts.
Divide given cell into 8 parts.
Returns pointer to the cell in which lies given 3d point
Returns pointer to the cell in which lies given 3d point
Returns pointer to the cell if its bounding box equal to giben box, otherwise returns NULL
Returns pointer to the cell if its bounding box equal to giben box, otherwise returns NULL
U3dGridCellsArray U3dGrid::getBodyCellsList |
( |
int |
bodyId | ) |
|
Returns list of cells, containing body #bodyId
U3dGridCellsArray U3dGrid::getBodyCellsList |
( |
int |
bodyId | ) |
|
Returns list of cells, containing body #bodyId
U3dGridCellsArray U3dGrid::getBoundCellsList |
( |
int |
boundId | ) |
|
Returns list of cells, containing bound #boundId
U3dGridCellsArray U3dGrid::getBoundCellsList |
( |
int |
boundId | ) |
|
Returns list of cells, containing bound #boundId
U3dGridCellsArray U3dGrid::getColumnBoundCellsList |
( |
U3dPoint |
p, |
|
|
int |
boundId |
|
) |
| const |
Returns list of cells, which contain bound #boundId and are intersected by the vertical line, which goes through the point p ("column of bound cells")
U3dGridCellsArray U3dGrid::getColumnBoundCellsList |
( |
U3dPoint |
p, |
|
|
int |
boundId |
|
) |
| const |
Returns list of cells, which contain bound #boundId and are intersected by the vertical line, which goes through the point p ("column of bound cells")
bool U3dGrid::getCommonCells |
( |
U3dGridCellsArray * |
common_cells, |
|
|
U3dBox * |
surfBox, |
|
|
U3dGridCell * |
root |
|
) |
| |
Returns list of cells, overlapping with given box
U3dGridCellsArray U3dGrid::getEmptyCellsList |
( |
| ) |
|
Returns list of cells, containing no bounds
U3dGridCellsArray U3dGrid::getEmptyCellsList |
( |
| ) |
|
Returns list of cells, containing no bounds
bool U3dGrid::getReady |
( |
| ) |
|
|
inline |
bool U3dGrid::getReady |
( |
| ) |
|
|
inline |
Return pointer to the root cell of the model grid.
Return pointer to the root cell of the model grid.
Delete all subcells of given cell. This can cause recursive deleting of all inherited cells of given cell.
Delete all subcells of given cell. This can cause recursive deleting of all inherited cells of given cell.
void U3dGrid::setReady |
( |
bool |
ready | ) |
|
|
inline |
Sets true ready flag (cells tree is filled with information)
void U3dGrid::setReady |
( |
bool |
ready | ) |
|
|
inline |
Sets true ready flag (cells tree is filled with information)
void U3dGrid::updateMaxCellId |
( |
int |
cellId | ) |
|
|
inline |
Set variable maxCellId to further operation with new cells
void U3dGrid::updateMaxCellId |
( |
int |
cellId | ) |
|
|
inline |
Set variable maxCellId to further operation with new cells
The documentation for this class was generated from the following files:
- /net/opt/univers/ubp-i-15.3-centos7-x64.urij/include/rbm/u3d_grid.hpp
- /net/opt/univers/ubp-i-15.3-centos7-x64.urij/include/vel3dmod/u3d_grid.hpp