A class representing a cylindrical wall object. More...
#include <wall.hh>
Public Member Functions | |
wall_cylinder (fpoint ixc, fpoint iyc, fpoint izc, fpoint ixa, fpoint iya, fpoint iza, 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 cylindrical wall object.
This class represents a open cylinder wall object.
Definition at line 61 of file wall.hh.
wall_cylinder::wall_cylinder | ( | fpoint | ixc, | |
fpoint | iyc, | |||
fpoint | izc, | |||
fpoint | ixa, | |||
fpoint | iya, | |||
fpoint | iza, | |||
fpoint | irc, | |||
int | iw_id = -99 | |||
) | [inline] |
bool wall_cylinder::cut_cell | ( | voronoicell_base< neighbor_track > & | c, | |
fpoint | x, | |||
fpoint | y, | |||
fpoint | z | |||
) | [inline, virtual] |
bool wall_cylinder::cut_cell | ( | voronoicell_base< neighbor_none > & | c, | |
fpoint | x, | |||
fpoint | y, | |||
fpoint | z | |||
) | [inline, virtual] |
bool wall_cylinder::cut_cell_base | ( | voronoicell_base< n_option > & | c, | |
fpoint | x, | |||
fpoint | y, | |||
fpoint | z | |||
) | [inline] |
Cuts a cell by the cylindrical wall object. The cylindrical wall is approximated by a single plane applied at the point on the cylinder 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. |