|
sphore 0.0.1
SPH openGL rendering engine
|
Code for managing SPH data. More...
Go to the source code of this file.
Typedefs | |
| typedef struct _data | data_t |
| The public interface to data. | |
Functions | |
| data_t * | data_create (unsigned int n, float *x, float *y, float *z, float *h, float *data) |
| Creates a new data set object. | |
| void | data_destroy (data_t *ds) |
| Frees the memory associated with the given dataset. | |
| const float * | data_get_verticies (data_t *ds) |
| Returns the verticies of all the particles. | |
| unsigned int | data_get_number_of_particles (data_t *ds) |
| Returns the number of particles in a given data set. | |
Code for managing SPH data.
| data_t* data_create | ( | unsigned int | n, |
| float * | x, | ||
| float * | y, | ||
| float * | z, | ||
| float * | h, | ||
| float * | data | ||
| ) |
Creates a new data set object.
Makes a copy of the data, so your original copy can be destroyed.
| [in] | n | the number of points. |
| [in] | x | the x coordinantes of the points. |
| [in] | y | the y coordinantes of the points. |
| [in] | z | the z coordinantes of the points. |
| [in] | h | the smoothing length of the particles. |
| [in] | data | the value of the data at each point. |
| void data_destroy | ( | data_t * | ds | ) |
Frees the memory associated with the given dataset.
| [in] | ds | the data to be destroyed. |
| unsigned int data_get_number_of_particles | ( | data_t * | ds | ) |
Returns the number of particles in a given data set.
| [in] | ds | The data to query. |
| const float* data_get_verticies | ( | data_t * | ds | ) |
Returns the verticies of all the particles.
| [in] | ds | The data to get the verticies from. |