Celeritas 0.7.0-dev.168+develop.6e17e5869
Loading...
Searching...
No Matches
Classes | Functions
CsgTestUtils.hh File Reference
#include <ostream>
#include <string>
#include "orange/orangeinp/CsgTypes.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  celeritas::orangeinp::test::ReprLogic
 Pretty-print a vector of logic. More...
 

Functions

std::string celeritas::orangeinp::test::to_json_string (CsgTree const &tree)
 
std::vector< intceleritas::orangeinp::test::to_vec_int (std::vector< NodeId > const &nodes)
 
std::vector< std::string > celeritas::orangeinp::test::surface_strings (detail::CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::volume_strings (detail::CsgUnit const &u)
 
std::string celeritas::orangeinp::test::tree_string (detail::CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::md_strings (detail::CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::bound_strings (detail::CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::transform_strings (detail::CsgUnit const &u)
 
std::vector< intceleritas::orangeinp::test::volume_nodes (detail::CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::fill_strings (detail::CsgUnit const &u)
 
std::vector< real_typeceleritas::orangeinp::test::flattened (detail::BoundingZone const &bz)
 
std::string celeritas::orangeinp::test::count_surface_types (detail::CsgUnit const &u)
 Count the number of surface types used in the CSG unit's tree.
 
void celeritas::orangeinp::test::print_expected (detail::CsgUnit const &u)
 
void celeritas::orangeinp::test::print_expected (detail::IntersectSurfaceState const &css)
 
void celeritas::orangeinp::test::stream_node_id (std::ostream &os, NodeId n)
 
void celeritas::orangeinp::test::stream_logic_int (std::ostream &os, logic_int value)
 
std::ostream & celeritas::orangeinp::test::operator<< (std::ostream &os, ReprLogic const &rl)
 

Function Documentation

◆ count_surface_types()

std::string celeritas::orangeinp::test::count_surface_types ( detail::CsgUnit const u)

Count the number of surface types used in the CSG unit's tree.

Note that this uses only the deduplicated surfaces, because the actual surface count is much more sensitive to floating point errors.