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 928 of file VolumeBuilderBase.hpp.

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

◆ ReflectZFinalSolid()

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

Configure final solid to be flipped in z.

Definition at line 918 of file VolumeBuilderBase.hpp.

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