19#ifndef BDSBEAMPIPEFACTORYRHOMBUS_H
20#define BDSBEAMPIPEFACTORYRHOMBUS_H
22#include "BDSBeamPipeFactoryPoints.hh"
60 G4double beamPipeThickness,
61 G4int pointsPerTwoPi = 40);
68 G4double beamPipeThickness);
74 G4double cornerRadius,
75 G4int pointsPerTwoPi);
Factory for beam pipes defined by a series of x,y points that are extruded.
Factory for rhombus aperture model beampipes.
BDS::ThreePoints ExpandRhombus(G4double aper1, G4double aper2, G4double aper3, G4double distance)
Expand the rhombus as needed.
void GenerateRhombus(std::vector< G4TwoVector > &vec, G4double x1, G4double y1, G4double cornerRadius, G4int pointsPerTwoPi)
Generate either 4 points or set of points with curved edges.
virtual void GeneratePoints(G4double aper1, G4double aper2, G4double aper3, G4double aper4, G4double beamPipeThickness, G4int pointsPerTwoPi=40)
Generate all the sets of required points for each surface.
virtual G4double CalculateIntersectionRadius(G4double aper1, G4double aper2, G4double aper3, G4double aper4, G4double beamPipeThickness)
Calculate the radius of the solid used for intersection for angled faces.
Return either G4Tubs or G4CutTubs depending on flat face.