Methods
calculate(volume, seedLine, numIt)
Runs the calculation of the surface.
Parameters:
Name | Type | Description |
---|---|---|
volume |
VolumeData | The vector field to be used. |
seedLine |
SeedLine | The seed line for sampling the initial particles. |
numIt |
int | The number of iterations for the surface generation algorithm. |
- Source:
checkDensity()
For all particles, checks if they need to be deleted, or if new particles need
to be inserted. Deletes, if particles are to close to each other or marked as
moribund. Inserts, if particles are to far from each other.
- Source:
initParticles()
This method samples particle along the seed line.
- Source:
insert(left, right)
Inserts a new particle between to neighbors.
Parameters:
Name | Type | Description |
---|---|---|
left |
Particle | The left neighbor. |
right |
Particle | The right neighbor. |
- Source:
processParticles()
This function calculates the normal of all particles and marks particles without
neighbors as moribund.
- Source:
pushParticles()
For all particles saves the position, normal and color to the buffers.
- Source:
updateParticles()
This method updates the position of all particles according to the vector field.
- Source: