![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
A class representing a spherical wall object. More...
#include <wall.hh>
Inheritance diagram for voro::wall_sphere:Public Member Functions | |
| wall_sphere (double xc_, double yc_, double zc_, double rc_, int w_id_=-99) | |
| bool | point_inside (double x, double y, double z) const |
| template<class v_cell > | |
| bool | cut_cell_base (v_cell &c, double x, double y, double z) const |
| bool | cut_cell (voronoicell &c, double x, double y, double z) const |
| bool | cut_cell (voronoicell_neighbor &c, double x, double y, double z) const |
Public Member Functions inherited from voro::wall | |
| virtual | ~wall () |
A class representing a spherical wall object.
This class represents a spherical wall object.
|
inline |
Constructs a spherical wall object.
| [in] | w_id_ | an ID number to associate with the wall for neighbor tracking. |
| [in] | (xc_,yc_,zc_) | a position vector for the sphere's center. |
| [in] | rc_ | the radius of the sphere. |
|
inlinevirtual |
A pure virtual function for cutting a cell without neighbor-tracking with a wall.
Implements voro::wall.
|
inlinevirtual |
A pure virtual function for cutting a cell with neighbor-tracking enabled with a wall.
Implements voro::wall.
| template bool voro::wall_sphere::cut_cell_base | ( | v_cell & | c, |
| double | x, | ||
| double | y, | ||
| double | z | ||
| ) | const |
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. |
Tests to see whether a point is inside the sphere wall object.
| [in,out] | (x,y,z) | the vector to test. |
Implements voro::wall.