UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
unitcell.hh
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2// Modified version of Voro++'s source file
3
4// Voro++, a 3D cell-based Voronoi library
5//
6// Author : Chris H. Rycroft (LBL / UC Berkeley)
7// Email : chr@alum.mit.edu
8// Date : August 30th 2011
9
13#ifndef VOROPP_UNITCELL_HH
14#define VOROPP_UNITCELL_HH
15
16#include <vector>
17
18#include "config.hh"
19#include "cell.hh"
20
21namespace voro {
22
25class unitcell {
26 public:
29 const double bx;
32 const double bxy;
35 const double by;
38 const double bxz;
41 const double byz;
44 const double bz;
48 unitcell(double bx_,double bxy_,double by_,double bxz_,double byz_,double bz_);
49 bool intersects_image(double dx,double dy,double dz,double &vol);
50 void images(std::vector<int> &vi,std::vector<double> &vd);
51 protected:
54 double max_uv_y;
57 double max_uv_z;
58 private:
59 inline void unit_voro_apply(int i,int j,int k);
60 bool unit_voro_intersect(int l);
61 inline bool unit_voro_test(int i,int j,int k);
62};
63
64}
65
66#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Header file for the voronoicell and related classes.
Class for computation of the unit Voronoi cell associated with a 3D non-rectangular periodic domain.
Definition unitcell.hh:25
const double bxz
Definition unitcell.hh:38
voronoicell unit_voro
Definition unitcell.hh:47
void images(std::vector< int > &vi, std::vector< double > &vd)
Definition unitcell.cc:125
const double bz
Definition unitcell.hh:44
double max_uv_z
Definition unitcell.hh:57
double max_uv_y
Definition unitcell.hh:54
const double byz
Definition unitcell.hh:41
const double bxy
Definition unitcell.hh:32
const double bx
Definition unitcell.hh:29
const double by
Definition unitcell.hh:35
bool intersects_image(double dx, double dy, double dz, double &vol)
Definition unitcell.cc:104
Extension of the voronoicell_base class to represent a Voronoi cell without neighbor information.
Definition cell.hh:222
Master configuration file for setting various compile-time options.
Definition c_loops.cc:15