Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/external_packages/cornelius.h>
Public Member Functions | |
Cube () | |
~Cube () | |
void | init (double ***&, int, double, double *&) |
void | construct_polygons (double) |
int | get_Nlines () |
int | get_Npolygons () |
int | is_ambiguous () |
Polygon * | get_polygons () |
Cube () | |
~Cube () | |
void | init (double ***&, int, double, double *&) |
void | construct_polygons (double) |
int | get_Nlines () |
int | get_Npolygons () |
int | is_ambiguous () |
Polygon * | get_polygons () |
Cube () | |
~Cube () | |
void | init (double ***&, int, double, double *&) |
void | construct_polygons (double) |
int | get_Nlines () |
int | get_Npolygons () |
int | is_ambiguous () |
Polygon * | get_polygons () |
Cube () | |
~Cube () | |
void | init (double ***&, int, double, double *&) |
void | construct_polygons (double) |
int | get_Nlines () |
int | get_Npolygons () |
int | is_ambiguous () |
Polygon * | get_polygons () |
Private Member Functions | |
void | split_to_squares () |
void | check_ambiguous (int) |
void | split_to_squares () |
void | check_ambiguous (int) |
void | split_to_squares () |
void | check_ambiguous (int) |
void | split_to_squares () |
void | check_ambiguous (int) |
Private Attributes | |
double *** | cube |
Line ** | lines |
Polygon * | polygons |
Square * | squares |
int | Nlines |
int | Npolygons |
int | ambiguous |
int | const_i |
double | const_value |
int | x1 |
int | x2 |
int | x3 |
double * | dx |
Static Private Attributes | |
static const int | DIM = 4 |
static const int | CUBE_DIM = 4 |
static const int | MAX_POLY = 8 |
static const int | NSQUARES = 6 |
static const int | STEPS = 2 |
This class handles 3d-cubes. Splits them into squares and collects polygons from the lines given from squares.
This class handles 3d-cubes. Splits them into squares and collects polygons from the lines given from squares.
13.10.2011 Hannu Holopainen
Definition at line 1382 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1382 of file cornelius.cpp
Cube::Cube | ( | ) |
Constructor allocated memory.
Definition at line 1419 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1419 of file cornelius.cpp
References i, j, and test_fpe::lines.
Cube::~Cube | ( | ) |
Destructor frees memory allocated in constructor.
Definition at line 1438 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1438 of file cornelius.cpp
References i, j, and test_fpe::lines.
Cube::Cube | ( | ) |
Cube::~Cube | ( | ) |
Cube::Cube | ( | ) |
Cube::~Cube | ( | ) |
Cube::Cube | ( | ) |
Cube::~Cube | ( | ) |
|
private |
|
private |
|
private |
Checks if the surface is ambiguous in this cube.
Definition at line 1628 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1628 of file cornelius.cpp
References i.
|
private |
void Cube::construct_polygons | ( | double | ) |
void Cube::construct_polygons | ( | double | ) |
void Cube::construct_polygons | ( | double | value0 | ) |
Here we construct polygons from the lines. If the surface cannot be ambiguous, all lines are just added to single polygon, but if the surface might be ambiguous we order the lines and determine how many polygons we have.
Definition at line 1552 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1552 of file cornelius.cpp
References i, j, test_fpe::lines, and merge_hashes::p.
void Cube::construct_polygons | ( | double | ) |
int Cube::get_Nlines | ( | ) |
int Cube::get_Nlines | ( | ) |
int Cube::get_Nlines | ( | ) |
Returns the number of the lines in this cube.
Definition at line 1664 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1664 of file cornelius.cpp
int Cube::get_Nlines | ( | ) |
int Cube::get_Npolygons | ( | ) |
int Cube::get_Npolygons | ( | ) |
int Cube::get_Npolygons | ( | ) |
int Cube::get_Npolygons | ( | ) |
Returns the number of the polygons in this cube.
Definition at line 1676 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1676 of file cornelius.cpp
Polygon* Cube::get_polygons | ( | ) |
Polygon* Cube::get_polygons | ( | ) |
Polygon * Cube::get_polygons | ( | ) |
Returns a table containing the polygons found from this cube.
Definition at line 1688 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1688 of file cornelius.cpp
Polygon* Cube::get_polygons | ( | ) |
Initializes the cube. Can be used several times to replace the old cube wit a new one.
[in] | c | Values at the corners of cube |
[in] | c_i | Index that is constant at this square |
[in] | c_val | Value for the constant index |
[in] | dex | Lenghts of the sides |
Definition at line 1463 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1463 of file cornelius.cpp
int Cube::is_ambiguous | ( | ) |
int Cube::is_ambiguous | ( | ) |
int Cube::is_ambiguous | ( | ) |
int Cube::is_ambiguous | ( | ) |
Tells if the surface elements is ambiguous in this cube. Zero if not ambiguous, non-zero if ambiguous.
Definition at line 1652 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1652 of file cornelius.cpp
|
private |
|
private |
|
private |
|
private |
Splits given cube to squares.
Definition at line 1502 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1502 of file cornelius.cpp
|
private |
Definition at line 1396 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1396 of file cornelius.cpp
|
private |
Definition at line 1397 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1397 of file cornelius.cpp
|
private |
Definition at line 1398 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1398 of file cornelius.cpp
|
private |
Definition at line 1390 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1390 of file cornelius.cpp
|
staticprivate |
Definition at line 1386 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1386 of file cornelius.cpp
|
staticprivate |
Definition at line 1385 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1385 of file cornelius.cpp
|
private |
Definition at line 1400 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1400 of file cornelius.cpp
|
private |
Definition at line 1391 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1391 of file cornelius.cpp
|
staticprivate |
Definition at line 1387 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1387 of file cornelius.cpp
|
private |
Definition at line 1394 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1394 of file cornelius.cpp
|
private |
Definition at line 1395 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1395 of file cornelius.cpp
|
staticprivate |
Definition at line 1388 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1388 of file cornelius.cpp
|
private |
Definition at line 1392 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1392 of file cornelius.cpp
|
private |
Definition at line 1393 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1393 of file cornelius.cpp
|
staticprivate |
Definition at line 1389 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1389 of file cornelius.cpp
|
private |
Definition at line 1399 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1399 of file cornelius.cpp
|
private |
Definition at line 1399 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1399 of file cornelius.cpp
|
private |
Definition at line 1399 of file cornelius.cpp.
View newest version in sPHENIX GitHub at line 1399 of file cornelius.cpp