UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
voro::radius_poly Class Reference

Class containing all of the routines that are specific to computing the radical Voronoi tessellation. More...

#include <rad_option.hh>

+ Inheritance diagram for voro::radius_poly:

Classes

struct  radius_info
 

Public Member Functions

 radius_poly ()
 

Public Attributes

double ** ppr
 
double max_radius
 

Protected Member Functions

void r_init (int ijk, int s, radius_info &radius_out) const
 
void r_prime (double rv, radius_info &radius_out) const
 
bool r_ctest (double crs, double mrs, const radius_info &rad_info) const
 
double r_cutoff (double lrs, const radius_info &rad_info) const
 
double r_max_add (double rs) const
 
double r_current_sub (double rs, int ijk, int q) const
 
double r_scale (double rs, int ijk, int q, const radius_info &rad_info) const
 
bool r_scale_check (double &rs, double mrs, int ijk, int q, const radius_info &rad_info) const
 

Detailed Description

Class containing all of the routines that are specific to computing the radical Voronoi tessellation.

The container_poly and container_periodic_poly classes are derived from this class, and during the Voronoi cell computation, these routines are used to create the radical Voronoi tessellation.

Constructor & Destructor Documentation

◆ radius_poly()

voro::radius_poly::radius_poly ( )
inline

The class constructor sets the maximum particle radius to be zero.

Member Function Documentation

◆ r_ctest()

bool voro::radius_poly::r_ctest ( double  crs,
double  mrs,
const radius_info rad_info 
) const
inlineprotected

Carries out a radius bounds check.

Parameters
[in]crsthe radius squared to be tested.
[in]mrsthe current maximum distance to a Voronoi vertex multiplied by two.
Returns
True if particles at this radius could not possibly cut the cell, false otherwise.

◆ r_current_sub()

double voro::radius_poly::r_current_sub ( double  rs,
int  ijk,
int  q 
) const
inlineprotected

Subtracts the radius squared of a particle from a given value.

Parameters
[in]rsthe value to consider.
[in]ijkthe block that the particle is within.
[in]qthe index of the particle within the block.
Returns
The value with the radius squared subtracted.

◆ r_cutoff()

double voro::radius_poly::r_cutoff ( double  lrs,
const radius_info rad_info 
) const
inlineprotected

Scales a plane displacement during a plane bounds check.

Parameters
[in]lrsthe plane displacement.
Returns
The scaled value.

◆ r_init()

void voro::radius_poly::r_init ( int  ijk,
int  s,
radius_info radius_out 
) const
inlineprotected

This is called prior to computing a Voronoi cell for a given particle to initialize any required constants.

Parameters
[in]ijkthe block that the particle is within.
[in]sthe index of the particle within the block.

◆ r_max_add()

double voro::radius_poly::r_max_add ( double  rs) const
inlineprotected

Adds the maximum radius squared to a given value.

Parameters
[in]rsthe value to consider.
Returns
The value with the radius squared added.

◆ r_prime()

void voro::radius_poly::r_prime ( double  rv,
radius_info radius_out 
) const
inlineprotected

Sets a required constant to be used when carrying out a plane bounds check.

◆ r_scale()

double voro::radius_poly::r_scale ( double  rs,
int  ijk,
int  q,
const radius_info rad_info 
) const
inlineprotected

Scales a plane displacement prior to use in the plane cutting algorithm.

Parameters
[in]rsthe initial plane displacement.
[in]ijkthe block that the particle is within.
[in]qthe index of the particle within the block.
Returns
The scaled plane displacement.

◆ r_scale_check()

bool voro::radius_poly::r_scale_check ( double rs,
double  mrs,
int  ijk,
int  q,
const radius_info rad_info 
) const
inlineprotected

Scales a plane displacement prior to use in the plane cutting algorithm, and also checks if it could possibly cut the cell.

Parameters
[in,out]rsthe plane displacement to be scaled.
[in]mrsthe current maximum distance to a Voronoi vertex multiplied by two.
[in]ijkthe block that the particle is within.
[in]qthe index of the particle within the block.
Returns
True if the cell could possibly cut the cell, false otherwise.

Member Data Documentation

◆ max_radius

double voro::radius_poly::max_radius

The current maximum radius of any particle, used to determine when to cut off the radical Voronoi computation.

◆ ppr

double** voro::radius_poly::ppr

A two-dimensional array holding particle positions and radii.


The documentation for this class was generated from the following file: