OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include "Structure/BoundaryGeometry.h"
#include <algorithm>
#include <cmath>
#include <ctime>
#include <fstream>
#include <string>
#include "H5hut.h"
#include <cfloat>
#include "AbstractObjects/OpalData.h"
#include "Algorithms/PartBunchBase.h"
#include "Expressions/SRefExpr.h"
#include "Elements/OpalBeamline.h"
#include "Physics/Physics.h"
#include "Utilities/OpalException.h"
#include "Utilities/Options.h"
#include <boost/filesystem.hpp>
#include <gsl/gsl_sys.h>
Go to the source code of this file.
Classes | |
class | Triangle |
class | Ray |
class | Voxel |
Namespaces | |
cmp_diff | |
cmp_ulp_obsolete | |
cmp_ulp | |
Macros | |
#define | SQR(x) ((x)*(x)) |
#define | PointID(triangle_id, vertex_id) Triangles_m[triangle_id][vertex_id] |
#define | Point(triangle_id, vertex_id) Points_m[Triangles_m[triangle_id][vertex_id]] |
#define | FUNC_EQ(x, y) |
#define | FUNC_EQ_ZERO(x) |
#define | FUNC_LE(x, y) |
#define | FUNC_LE_ZERO(x) |
#define | FUNC_LT(x, y) |
#define | FUNC_LT_ZERO(x) |
#define | FUNC_GE(x, y) |
#define | FUNC_GE_ZERO(x) |
#define | FUNC_GT(x, y) |
#define | FUNC_GT_ZERO(x) |
#define | INSIDE 0 |
#define | OUTSIDE 1 |
#define | LERP(a, b, t) (a + t * (b - a)) |
#define | mapPoint2VoxelIndices(pt, i, j, k) |
Functions | |
bool | cmp_diff::almost_eq (double A, double B, double maxDiff=1e-15, double maxRelDiff=DBL_EPSILON) |
bool | cmp_diff::almost_eq_zero (double A, double maxDiff=1e-15) |
bool | cmp_diff::eq (double x, double y) |
bool | cmp_diff::eq_zero (double x) |
bool | cmp_diff::le (double x, double y) |
bool | cmp_diff::le_zero (double x) |
bool | cmp_diff::lt (double x, double y) |
bool | cmp_diff::lt_zero (double x) |
bool | cmp_diff::ge (double x, double y) |
bool | cmp_diff::ge_zero (double x) |
bool | cmp_diff::gt (double x, double y) |
bool | cmp_diff::gt_zero (double x) |
bool | cmp_ulp_obsolete::almost_eq (double A, double B, double maxDiff=1e-20, int maxUlps=1000) |
bool | cmp_ulp_obsolete::almost_eq_zero (double A, double maxDiff=1e-15) |
bool | cmp_ulp_obsolete::eq (double x, double y) |
bool | cmp_ulp_obsolete::eq_zero (double x) |
bool | cmp_ulp_obsolete::le (double x, double y) |
bool | cmp_ulp_obsolete::le_zero (double x) |
bool | cmp_ulp_obsolete::lt (double x, double y) |
bool | cmp_ulp_obsolete::lt_zero (double x) |
bool | cmp_ulp_obsolete::ge (double x, double y) |
bool | cmp_ulp_obsolete::ge_zero (double x) |
bool | cmp_ulp_obsolete::gt (double x, double y) |
bool | cmp_ulp_obsolete::gt_zero (double x) |
bool | cmp_ulp::almost_eq (double A, double B, double maxDiff=1e-20, int maxUlps=1000) |
bool | cmp_ulp::almost_eq_zero (double A, double maxDiff=1e-15) |
bool | cmp_ulp::eq (double x, double y) |
bool | cmp_ulp::eq_zero (double x) |
bool | cmp_ulp::le (double x, double y) |
bool | cmp_ulp::le_zero (double x) |
bool | cmp_ulp::lt (double x, double y) |
bool | cmp_ulp::lt_zero (double x) |
bool | cmp_ulp::ge (double x, double y) |
bool | cmp_ulp::ge_zero (double x) |
bool | cmp_ulp::gt (double x, double y) |
bool | cmp_ulp::gt_zero (double x) |
Variables | |
Inform * | gmsg |
constexpr double | EPS = 10e-15 |
#define FUNC_EQ | ( | x, | |
y | |||
) |
Definition at line 62 of file BoundaryGeometry.cpp.
#define FUNC_EQ_ZERO | ( | x | ) |
Definition at line 66 of file BoundaryGeometry.cpp.
#define FUNC_GE | ( | x, | |
y | |||
) |
Definition at line 98 of file BoundaryGeometry.cpp.
#define FUNC_GE_ZERO | ( | x | ) |
Definition at line 105 of file BoundaryGeometry.cpp.
#define FUNC_GT | ( | x, | |
y | |||
) |
Definition at line 112 of file BoundaryGeometry.cpp.
#define FUNC_GT_ZERO | ( | x | ) |
Definition at line 119 of file BoundaryGeometry.cpp.
#define FUNC_LE | ( | x, | |
y | |||
) |
Definition at line 70 of file BoundaryGeometry.cpp.
#define FUNC_LE_ZERO | ( | x | ) |
Definition at line 77 of file BoundaryGeometry.cpp.
#define FUNC_LT | ( | x, | |
y | |||
) |
Definition at line 84 of file BoundaryGeometry.cpp.
#define FUNC_LT_ZERO | ( | x | ) |
Definition at line 91 of file BoundaryGeometry.cpp.
#define INSIDE 0 |
Definition at line 414 of file BoundaryGeometry.cpp.
#define mapPoint2VoxelIndices | ( | pt, | |
i, | |||
j, | |||
k | |||
) |
Definition at line 1542 of file BoundaryGeometry.cpp.
#define OUTSIDE 1 |
Definition at line 415 of file BoundaryGeometry.cpp.
#define Point | ( | triangle_id, | |
vertex_id | |||
) | Points_m[Triangles_m[triangle_id][vertex_id]] |
Definition at line 48 of file BoundaryGeometry.cpp.
#define PointID | ( | triangle_id, | |
vertex_id | |||
) | Triangles_m[triangle_id][vertex_id] |
Definition at line 47 of file BoundaryGeometry.cpp.
#define SQR | ( | x | ) | ((x)*(x)) |
Definition at line 46 of file BoundaryGeometry.cpp.
|
constexpr |
Definition at line 593 of file BoundaryGeometry.cpp.
|
extern |
Definition at line 62 of file Main.cpp.
Referenced by BoundaryGeometry::computeMeshVoxelization(), BoundaryGeometry::fastIsInside(), BoundaryGeometry::findInsidePoint(), BoundaryGeometry::initialize(), BoundaryGeometry::intersectLineSegmentBoundary(), BoundaryGeometry::intersectRayBoundary(), BoundaryGeometry::intersectTinyLineSegmentBoundary(), and BoundaryGeometry::partInside().