Package gov.nih.mipav.model.structures
Class Voro.wall_cone
java.lang.Object
gov.nih.mipav.model.structures.Voro.wall
gov.nih.mipav.model.structures.Voro.wall_cone
- Enclosing class:
Voro
\brief A class representing a conical wall object.
This class represents a cone wall object.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionwall_cone(double xc_, double yc_, double zc_, double xa_, double ya_, double za_, double ang, int w_id_) Constructs a cone wall object. -
Method Summary
Modifier and TypeMethodDescriptionbooleancut_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 cone wall object.voiddelete()booleanpoint_inside(double x, double y, double z) Tests to see whether a point is inside the cone wall object.
-
Field Details
-
w_id
private int w_id -
xc
private double xc -
yc
private double yc -
zc
private double zc -
xa
private double xa -
ya
private double ya -
za
private double za -
asi
private double asi -
gra
private double gra -
sang
private double sang -
cang
private double cang
-
-
Constructor Details
-
wall_cone
public wall_cone(double xc_, double yc_, double zc_, double xa_, double ya_, double za_, double ang, int w_id_) Constructs a cone wall object. \param[in] (xc_,yc_,zc_) the apex of the cone. \param[in] (xa_,ya_,za_) a vector pointing along the axis of the cone. \param[in] ang the angle (in radians) of the cone, measured from the axis. \param[in] w_id_ an ID number to associate with the wall for neighbor tracking.
-
-
Method Details
-
delete
public void delete() -
point_inside
public boolean point_inside(double x, double y, double z) Tests to see whether a point is inside the cone wall object. \param[in] (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
Cuts a cell by the cone wall object. The conical wall is approximated by a single plane applied at the point on the cone 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
-
cut_cell
Description copied from class:Voro.wallA pure virtual function for cutting a cell without neighbor-tracking with a wall. -
cut_cell
Description copied from class:Voro.wallA pure virtual function for cutting a cell with neighbor-tracking enabled with a wall.
-