Public Attributes

PolyVox::RaycastResult Struct Reference

Stores the result of a raycast operation. More...

#include <Raycast.h>

Collaboration diagram for PolyVox::RaycastResult:

List of all members.

Public Attributes

bool foundIntersection
 Indicates whether an intersection was found.
Vector3DInt32 intersectionVoxel
 If an intersection was found then this field holds the intersecting voxel, otherwise it is undefined.
Vector3DInt32 previousVoxel

Detailed Description

Stores the result of a raycast operation.

A instance of this structure is passed to a Raycast object, and is filled in as the ray traverses the volume. The 'foundIntersection' field indicates whether the ray hit any solid voxels, and if so the 'intersectionVoxel' field indicates the voxel's position

Definition at line 38 of file Raycast.h.


Member Data Documentation

Indicates whether an intersection was found.

Definition at line 41 of file Raycast.h.

Referenced by PolyVox::AmbientOcclusionCalculator< VolumeType, VoxelType >::execute().

If an intersection was found then this field holds the intersecting voxel, otherwise it is undefined.

Definition at line 43 of file Raycast.h.

Definition at line 44 of file Raycast.h.


The documentation for this struct was generated from the following file: