Celeritas  0.5.0-56+6b053cd
Functions
CsgObject.cc File Reference
#include "CsgObject.hh"
#include <utility>
#include "corecel/io/JsonPimpl.hh"
#include "ObjectIO.json.hh"
#include "detail/CsgUnitBuilder.hh"
#include "detail/VolumeBuilder.hh"

Functions

std::shared_ptr< AllObjects const > celeritas::orangeinp::make_subtraction (std::string &&label, SPConstObject const &minuend, SPConstObject const &subtrahend)
 Make a new object that is the second object subtracted from the first. More...
 
std::shared_ptr< AllObjects const > celeritas::orangeinp::make_rdv (std::string &&label, VecSenseObj &&inp)
 Make a combination of possibly negated objects. More...
 

Function Documentation

◆ make_rdv()

std::shared_ptr< AllObjects const > celeritas::orangeinp::make_rdv ( std::string &&  label,
VecSenseObj &&  inp 
)

Make a combination of possibly negated objects.

The Region Definition Vector is the SCALE way for defining media, boundaries, etc. It must not be empty.

◆ make_subtraction()

std::shared_ptr< AllObjects const > celeritas::orangeinp::make_subtraction ( std::string &&  label,
SPConstObject const &  minuend,
SPConstObject const &  subtrahend 
)

Make a new object that is the second object subtracted from the first.

This just takes the intersection the first object and the negated second:

A - B <=> A & ~B