MOAB: Mesh Oriented datABase  (version 5.4.1)
SphericalDomainTest.cpp File Reference

Unit tests for SphericalDomain class. More...

#include "Mesquite.hpp"
#include "UnitUtil.hpp"
#include "SphericalDomain.hpp"
#include "ArrayMesh.hpp"
+ Include dependency graph for SphericalDomainTest.cpp:

Go to the source code of this file.


class  SphericalDomainTest


 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (SphericalDomainTest,"SphericalDomainTest")
static void sphere_point (Vector3D cen, double rad, double theta, double phi, double pt[3])

Detailed Description

Unit tests for SphericalDomain class.

Jason Kraftcheck

Definition in file SphericalDomainTest.cpp.

Function Documentation

static void sphere_point ( Vector3D  cen,
double  rad,
double  theta,
double  phi,
double  pt[3] 
) [static]

Definition at line 100 of file SphericalDomainTest.cpp.

Referenced by SphericalDomainTest::test_fit_vertices().

    Vector3D pdir( cos( phi ) * cos( theta ), cos( phi ) * sin( theta ), sin( phi ) );
    Vector3D rslt = cen + rad * pdir;
    pt[0]         = rslt[0];
    pt[1]         = rslt[1];
    pt[2]         = rslt[2];
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines