DLG4::VolumeBuilders
A fluent interface for Geant4 geometry definition.
Loading...
Searching...
No Matches
Functions
Shape transformers

Functions

DerivedPtr ReflectZFinalSolid ()
 
DerivedPtr ReflectZBaseSolid ()
 

Detailed Description

Modify shape configurations.

Function Documentation

◆ ReflectZBaseSolid()

template<typename U >
VolumeBuilderBase< U >::DerivedPtr ReflectZBaseSolid ( )

Configure base solid to be flipped BEFORE applying booleans.

See also
ReflectZFinalSolid() to flip entire solid with or without Booleans.
Returns
The same builder (allows chaining)

Definition at line 925 of file VolumeBuilderBase.hpp.

925 {
926 if (final_solid_ptr_) {
927 throw std::runtime_error("Error VolumeBuilderBase::ReflectZBaseSolid, \n"
928 "The base solid is already built. \n");
929 }
930 builder_configs_->reflect_base_solid_z = true;
931 return this->shared_from_this();
932 }

◆ ReflectZFinalSolid()

template<typename U >
VolumeBuilderBase< U >::DerivedPtr ReflectZFinalSolid ( )

Configure final solid to be flipped in z.

Definition at line 915 of file VolumeBuilderBase.hpp.

915 {
916 if (final_solid_ptr_) {
917 throw std::runtime_error("Error VolumeBuilderBase::ReflectZFinalSolid, \n"
918 "The final solid is already built. \n");
919 }
920 boolean_configs_->reflect_z = true;
921 return this->shared_from_this();
922 }