API / geotoolkit3d / util / debug / CameraFrustumDebug / CameraFrustumDebug
debug.CameraFrustumDebug.CameraFrustumDebug
Type Aliases
Type Aliases
Ƭ DisplayDebugVisualsOptions: Object
| Name | Type | Description |
|---|---|---|
boxesscale? | number | Optional scaling for the box size. A larger-than-1 scale (ex: 1.01 to increase box size by 1%) can be useful to avoid z-fighting or improve visual reading when a lot of boxes overlap on similar coordinates. Default is 1 |
drawboxes? | boolean | Whether to draw objects bounding boxes debug visual or not. Default is true. |
drawfrustum? | boolean | Whether to draw the camera frustum debug visual or not. Default is true. |
drawspheres? | boolean | Whether to draw objects bounding spheres debug visual or not. Default is true. |
excludegrid? | boolean | If true, the debug visualisation of the bounding boxes for graduated grids in the scene (IndexGrid, Grid, PolarGrid) will not be drawn. This option only have effect if the option.drawboxes is also true. Default is true. |
filter? | FilterCallback | A filter function to ignore some nodes if callback returns false. Default is null. |
frustumcolors? | { cone?: Color ; cross?: Color ; frustum?: Color ; target?: Color ; up?: Color } | Customize the Frustum debug visual colors |
frustumcolors.cone? | Color | Define the camera cone (between the near plane and the frustum) color. Default is 0xff0000 (red). |
frustumcolors.cross? | Color | Define the Frustum crosses color (crosses are horizontal/vertical lines inside the near and far planes). Default is 0x333333 (dark grey). |
frustumcolors.frustum? | Color | Define the camera frustum line colors. Default is 0xffaa00 (orange). |
frustumcolors.target? | Color | Define the camera ray color (the line segment representing the camera lookat direction). Default is 0xffffff (white). |
frustumcolors.up? | Color | Define the camera up vector color. Default is 0x00aaff (light blue). |