A class representing a spherical wall object. More...
#include <wall.hh>
Public Member Functions | |
wall_sphere (fpoint ixc, fpoint iyc, fpoint izc, fpoint irc, int iw_id=-99) | |
bool | point_inside (fpoint x, fpoint y, fpoint z) |
template<class n_option > | |
bool | cut_cell_base (voronoicell_base< n_option > &c, fpoint x, fpoint y, fpoint z) |
bool | cut_cell (voronoicell_base< neighbor_none > &c, fpoint x, fpoint y, fpoint z) |
bool | cut_cell (voronoicell_base< neighbor_track > &c, fpoint x, fpoint y, fpoint z) |
A class representing a spherical wall object.
This class represents a spherical wall object.
Definition at line 16 of file wall.hh.
bool wall_sphere::cut_cell | ( | voronoicell_base< neighbor_track > & | c, | |
fpoint | x, | |||
fpoint | y, | |||
fpoint | z | |||
) | [inline, virtual] |
bool wall_sphere::cut_cell | ( | voronoicell_base< neighbor_none > & | c, | |
fpoint | x, | |||
fpoint | y, | |||
fpoint | z | |||
) | [inline, virtual] |
bool wall_sphere::cut_cell_base | ( | voronoicell_base< n_option > & | c, | |
fpoint | x, | |||
fpoint | y, | |||
fpoint | z | |||
) | [inline] |
Cuts a cell by the sphere wall object. The spherical wall is approximated by a single plane applied at the point on the sphere which is closest to the center of the cell. This works well for particle arrangements that are packed against the wall, but loses accuracy for sparse particle distributions.
[in,out] | c | the Voronoi cell to be cut. |
[in] | (x,y,z) | the location of the Voronoi cell. |