Package gov.nih.mipav.model.structures
Class Voro.wall_sphere
- java.lang.Object
-
- gov.nih.mipav.model.structures.Voro.wall
-
- gov.nih.mipav.model.structures.Voro.wall_sphere
-
-
Constructor Summary
Constructors Constructor Description wall_sphere(double xc_, double yc_, double zc_, double rc_, int w_id_)Constructs a spherical wall object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancut_cell(Voro.voronoicell_neighbor c, double x, double y, double z)A pure virtual function for cutting a cell with neighbor-tracking enabled with a wall.booleancut_cell(Voro.voronoicell c, double x, double y, double z)A pure virtual function for cutting a cell without neighbor-tracking with a wall.booleancut_cell_base(Voro.voronoicell_neighbor c, double x, double y, double z)booleancut_cell_base(Voro.voronoicell c, double x, double y, double z)Cuts a cell by the sphere wall object.voiddelete()booleanpoint_inside(double x, double y, double z)Tests to see whether a point is inside the sphere wall object.
-
-
-
Constructor Detail
-
wall_sphere
public wall_sphere(double xc_, double yc_, double zc_, double rc_, int w_id_)Constructs a spherical wall object. \param[in] w_id_ an ID number to associate with the wall for neighbor tracking. \param[in] (xc_,yc_,zc_) a position vector for the sphere's center. \param[in] rc_ the radius of the sphere.
-
-
Method Detail
-
point_inside
public boolean point_inside(double x, double y, double z)Tests to see whether a point is inside the sphere wall object. \param[in,out] (x,y,z) the vector to test. \return True if the point is inside, false if the point is outside.- Specified by:
point_insidein classVoro.wall
-
cut_cell_base
public boolean cut_cell_base(Voro.voronoicell c, double x, double y, double z)
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. \param[in,out] c the Voronoi cell to be cut. \param[in] (x,y,z) the location of the Voronoi cell. \return True if the cell still exists, false if the cell is deleted.
-
cut_cell_base
public boolean cut_cell_base(Voro.voronoicell_neighbor c, double x, double y, double z)
-
cut_cell
public boolean cut_cell(Voro.voronoicell c, double x, double y, double z)
Description copied from class:Voro.wallA pure virtual function for cutting a cell without neighbor-tracking with a wall.
-
cut_cell
public boolean cut_cell(Voro.voronoicell_neighbor c, double x, double y, double z)
Description copied from class:Voro.wallA pure virtual function for cutting a cell with neighbor-tracking enabled with a wall.
-
-