Celeritas 0.7.0-dev.164+develop.929c81eeb
Loading...
Searching...
No Matches
Functions
CsgTestUtils.cc File Reference
#include "CsgTestUtils.hh"
#include <iomanip>
#include <set>
#include <sstream>
#include <variant>
#include <vector>
#include <nlohmann/json.hpp>
#include "corecel/Assert.hh"
#include "corecel/OpaqueIdUtils.hh"
#include "corecel/StringSimplifier.hh"
#include "corecel/io/Join.hh"
#include "corecel/io/Repr.hh"
#include "corecel/io/StreamableVariant.hh"
#include "orange/BoundingBoxUtils.hh"
#include "orange/OrangeTypes.hh"
#include "orange/orangeinp/CsgTree.hh"
#include "orange/orangeinp/CsgTreeIO.json.hh"
#include "orange/orangeinp/CsgTreeUtils.hh"
#include "orange/orangeinp/detail/CsgUnit.hh"
#include "orange/orangeinp/detail/IntersectSurfaceState.hh"
#include "orange/surf/SurfaceIO.hh"
#include "orange/transform/TransformIO.hh"
#include "Test.hh"

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 (CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::volume_strings (CsgUnit const &u)
 
std::string celeritas::orangeinp::test::tree_string (CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::md_strings (CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::bound_strings (CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::transform_strings (CsgUnit const &u)
 
std::vector< intceleritas::orangeinp::test::volume_nodes (CsgUnit const &u)
 
std::vector< std::string > celeritas::orangeinp::test::fill_strings (CsgUnit const &u)
 
std::vector< real_typeceleritas::orangeinp::test::flattened (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 (CsgUnit const &u)
 
void celeritas::orangeinp::test::print_expected (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.