UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
config.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_CONFIG_HH
14#define VOROPP_CONFIG_HH
15
16namespace voro {
17
18// These constants set the initial memory allocation for the Voronoi cell
20const int init_vertices=256;
22const int init_vertex_order=64;
25const int init_3_vertices=256;
28const int init_n_vertices=8;
30const int init_marginal=64;
32const int init_delete_size=256;
34const int init_delete2_size=256;
36const int init_wall_size=32;
38const int init_ordering_size=4096;
40const int init_chunk_size=256;
41
42// If the initial memory is too small, the program dynamically allocates more.
43// However, if the limits below are reached, then the program bails out.
45const int max_vertices=16777216;
47const int max_vertex_order=16777216;
49const int max_n_vertices=16777216;
51const int max_marginal=16777216;
53const int max_delete_size=16777216;
55const int max_delete2_size=16777216;
57const int max_particle_memory=16777216;
59const int max_wall_size=2048;
61const int max_ordering_size=67108864;
63const int max_chunk_size=65536;
64
67
68#ifndef VOROPP_VERBOSE
76#define VOROPP_VERBOSE 0
77#endif
78
81const double tolerance=1e-11;
82
87const double tolerance2=2e-11;
88
92
94const double large_number=1e30;
95
97const double default_radius=0.5;
98
101
104const double optimal_particles=5.6;
105
108#define VOROPP_REPORT_OUT_OF_BOUNDS 0
109
112#define VOROPP_FILE_ERROR 1
113
116#define VOROPP_MEMORY_ERROR 2
117
122#define VOROPP_INTERNAL_ERROR 3
123
126#define VOROPP_CMD_LINE_ERROR 4
127
128}
129
130#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition c_loops.cc:15
const int init_n_vertices
Definition config.hh:28
const int max_vertex_order
Definition config.hh:47
const int max_unit_voro_shells
Definition config.hh:100
const int max_ordering_size
Definition config.hh:61
const int init_marginal
Definition config.hh:30
const int init_chunk_size
Definition config.hh:40
const int init_delete2_size
Definition config.hh:34
const double large_number
Definition config.hh:94
const int max_vertices
Definition config.hh:45
const int max_delete_size
Definition config.hh:53
const int init_3_vertices
Definition config.hh:25
const int max_delete2_size
Definition config.hh:55
const int max_chunk_size
Definition config.hh:63
const int init_ordering_size
Definition config.hh:38
const double tolerance2
Definition config.hh:87
const int pre_container_chunk_size
Definition config.hh:66
const int max_n_vertices
Definition config.hh:49
const int init_vertices
Definition config.hh:20
const double tolerance
Definition config.hh:81
const int max_wall_size
Definition config.hh:59
const double tolerance_sq
Definition config.hh:91
const int init_delete_size
Definition config.hh:32
const int init_wall_size
Definition config.hh:36
const double default_radius
Definition config.hh:97
const int max_particle_memory
Definition config.hh:57
const int max_marginal
Definition config.hh:51
const int init_vertex_order
Definition config.hh:22
const double optimal_particles
Definition config.hh:104