You are here

Cell

Availability

contactcontactGeocontactStereocontactGeoStereo
winAvailableAvailableAvailableAvailable
macAvailableN/AN/AN/A
linuxAvailableN/AN/AN/A
iosAvailableN/AN/AN/A
androidAvailableN/AN/AN/A


General

The Cells & Portals technique allows the visibility management of complex indoor environments. The Cells & Portals technique also combines several Extension nodes. Please see node definitions for Cell and Portal.




Syntax



Cell
{
  eventIn  MFNode  addChildren
  exposedField  SFVec3f  bboxCenter
  exposedField  SFVec3f  bboxSize
  exposedField  MFNode  children
  exposedField  SFInt32  content
  exposedField  MFNode  portals
  eventIn  MFNode  removeChildren
}




Fields

Field typeNode nameData typeDefaultDescription
[in]addChildrenMFNodeeventIn for adding children
[in out]bboxCenterSFVec3f0 0 0bbox center
[in out]bboxSizeSFVec3f-1 -1 -1Size of bounding box
[in out]childrenMFNode[]All nodes being part of the cell
[in out]contentSFInt32For application use. Depending on the application, it is possible to define content types like water, closed space, normal space, etc. (e.g. User can not walk into a Cell containing water.)
[in out]portalsMFNode[]Specifies list of Portals for the Cell
[in]removeChildrenMFNodeeventIn for removing children


Related nodes

CellGroup
Portal



Demos

Cells and Portals inside

In this demo a scene is generated by a recursive function. The scene represents a number of rooms connected with 2, 3 and 4 doors depending on the location. The use of Cells and Portals nodes with BspTree node increases the speed of the algorithm by factor of 2-3. Another similar demo for the outer arrangement of objects may be found here:
Cells and portals outside

To the demo
Cells and Portals outside

The demo represents a scene with regularily placed boxes (houses) and streets between them. The Cells and Portals use the information about the position and size of these objects to make a culling of the occluded objects. A similar algorithm for the inner arrangement of objects may be found here:

Cells and portals inside

To the demo