|
Celeritas 0.7.0-dev.194+develop.0df4cab59
|
A tetrahedron defined by four vertices. More...
#include <IntersectRegion.hh>

Public Types | |
Type aliases | |
| using | ArrReal3 = Array< Real3, 4 > |
Public Member Functions | |
| Tet (ArrReal3 const &) | |
| Construct from four vertices. | |
| Tet (Real3 const &v0, Real3 const &v1, Real3 const &v2, Real3 const &v3) | |
| Construct from four vertices. | |
| void | build (IntersectSurfaceBuilder &) const final |
| Build surfaces. | |
| void | output (JsonPimpl *) const final |
| Write output to the given JSON object. | |
| Real3 const & | vertex (size_type i) const |
| Get a vertex by index. | |
| ArrReal3 const & | vertices () const |
| Get all vertices. | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::orangeinp::IntersectRegionInterface | |
| CELER_DEFAULT_COPY_MOVE (IntersectRegionInterface) | |
A tetrahedron defined by four vertices.
A tetrahedron is a polyhedron with four triangular faces. The four vertices should not be coplanar, and they should be ordered such that when viewed from outside the tetrahedron, each triangular face has vertices in counterclockwise order (following the right-hand rule for outward normals).
The tetrahedron is constructed by defining four planes, one for each face. Each plane is determined by three vertices. Face i uses all the vertices except for the one at index i .
|
finalvirtual |
Build surfaces.
Implements celeritas::orangeinp::IntersectRegionInterface.
Write output to the given JSON object.
Implements celeritas::orangeinp::IntersectRegionInterface.