PPL Logo

libs/ck-libs/datatransfer/test_cg3d.C File Reference

Go to the source code of this file.

Functions

double randFloat (void)
 Spit out a random floating point number, uniform on [0,1].
CkVector3d randPoint (void)
 Spit out a random 3-vector, uniform over the unit cube.
CkVector3d randPlane (void)
 Spit out a random 3-vector, uniform over a skew plane.
Tet3d randTet (int tetType, PointSet3d *ps)
void doTest (int firstTest, int lastTest)
int main (int argc, char *argv[])

Variables

const int tetTypes = 6


Function Documentation

double randFloat ( void   ) 

Spit out a random floating point number, uniform on [0,1].

Definition at line 14 of file test_cg3d.C.

References float.

Referenced by doTest(), matchTest(), randPlane(), randPoint(), and timePer().

Here is the caller graph for this function:

CkVector3d randPoint ( void   ) 

Spit out a random 3-vector, uniform over the unit cube.

Definition at line 19 of file test_cg3d.C.

References randFloat().

Referenced by randTet().

Here is the call graph for this function:

Here is the caller graph for this function:

CkVector3d randPlane ( void   ) 

Spit out a random 3-vector, uniform over a skew plane.

This ensures a large number of degeneracies.

Definition at line 25 of file test_cg3d.C.

References randFloat().

Referenced by randTet().

Here is the call graph for this function:

Here is the caller graph for this function:

Tet3d randTet ( int  tetType,
PointSet3d ps 
) [inline]

Definition at line 41 of file test_cg3d.C.

References C, randPlane(), randPoint(), PUP::t, cg3d::testShape(), and tetVolume().

Referenced by doTest(), matchTest(), and timePer().

Here is the call graph for this function:

Here is the caller graph for this function:

void doTest ( int  firstTest,
int  lastTest 
)

Definition at line 67 of file test_cg3d.C.

References abort(), int, cg3d::intersectDebug(), randFloat(), randTet(), and tetTypes.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 93 of file test_cg3d.C.

References doTest().

Here is the call graph for this function:


Variable Documentation

const int tetTypes = 6

Definition at line 38 of file test_cg3d.C.

Referenced by doTest(), and matchTest().


Generated on Mon Sep 21 08:07:00 2020 for Charm++ by  doxygen 1.5.5