Class: Volume

Volume

An object representing a vector field.

Constructor

new Volume(height, width, depth)

Parameters:
Name Type Description
height int The desired resolution in the "height"-dimension.
width int The desired resolution in the "width"-dimension.
depth int The desired resolution in the "depth"-dimension.
Source:

Members

data

An array of type THREE.Vector3 representing the vector field.
Source:

Methods

generateTornado(time)

Refreshes the internal data as a simulation of vector field, which might have been caused by a tornado. Taken from: http://web.cse.ohio-state.edu/~crawfis/Data/Tornado/tornadoSrc.c
Parameters:
Name Type Description
time int The timepoint of the tornado.
Source:

nearest(pos)

Samples the volume by nearest neighbor.
Parameters:
Name Type Description
pos THREE.Vector3 The position, where data should be sampled.
Source:

trilinear(pos)

Samples the volume trilinear. (Not really ...)
Parameters:
Name Type Description
pos THREE.Vector3 The position, where data should be sampled.
Source: