Interface IVolumeCoordSpaceConverter
Interface to implement for helpers to convert between Data Space and
Unity's World Space.
Assembly: IVLab.ABREngine.Runtime.dll
Syntax
public interface IVolumeCoordSpaceConverter
Properties
|
Improve this Doc
View Source
VolumeDimensions
The x,y,z dimensions of the raw voxel data (i.e., the number of
voxels in each direction) -- read only.
Declaration
Vector3Int VolumeDimensions { get; }
Property Value
Type |
Description |
Vector3Int |
|
Methods
|
Improve this Doc
View Source
ContainsVoxelSpacePoint(Vector3)
Returns true if the point in voxel space lies within the volume.
Since voxel space is defined in units of voxels, this simply checks
to see if the point lies within the dimensions of the volume.
Declaration
bool ContainsVoxelSpacePoint(Vector3 voxelSpacePoint)
Parameters
Type |
Name |
Description |
Vector3 |
voxelSpacePoint |
|
Returns
|
Improve this Doc
View Source
DataSpacePointToVoxelSpace(Vector3)
Converts a point in the original data coordinate space, which is
typically defined in real-world units, like meters, to a point
within the voxel coordinate space. The voxel space is defined in
units of voxels, but the coordinates can be fractional so we can
represent a point within a voxel, not just at the center of each
voxel.
Declaration
Vector3 DataSpacePointToVoxelSpace(Vector3 dataSpacePoint)
Parameters
Type |
Name |
Description |
Vector3 |
dataSpacePoint |
|
Returns
|
Improve this Doc
View Source
VoxelSpacePointToDataSpace(Vector3)
Converts a point in voxel space to the data coordinate space.
Typically this transforms the voxels, which are like pixels in an
image, into a real-world coordinate space like meters.
Declaration
Vector3 VoxelSpacePointToDataSpace(Vector3 voxelSpacePoint)
Parameters
Type |
Name |
Description |
Vector3 |
voxelSpacePoint |
|
Returns
|
Improve this Doc
View Source
VoxelSpacePointToWorldSpace(Vector3)
Converts a point in voxel space (can include fractions) to the
point's current position in Unity's World coordinate system.
Declaration
Vector3 VoxelSpacePointToWorldSpace(Vector3 voxelSpacePoint)
Parameters
Type |
Name |
Description |
Vector3 |
voxelSpacePoint |
|
Returns
|
Improve this Doc
View Source
WorldSpacePointToVoxelSpace(Vector3)
Converts a point in Unity world coordinates to a point within the
data coordinate space and then to a corresponding point in voxel
coordinate space. The voxel space is defined in units of voxels,
but the coordinates can be fractional so we can represent a point
within a voxel, not just at the center of each voxel.
Declaration
Vector3 WorldSpacePointToVoxelSpace(Vector3 worldSpacePoint)
Parameters
Type |
Name |
Description |
Vector3 |
worldSpacePoint |
|
Returns