1 #include <msp/geometry/box.h>
2 #include <msp/geometry/transformedshape.h>
3 #include <msp/geometry/union.h>
4 #include "beamgatetype.h"
11 BeamGateType::BeamGateType()
14 Geometry::TransformedShape<float, 3> box1(
15 Geometry::Box<float>(0.005, 0.03, 0.002),
16 Transform::translation(Vector(0, 0, 0.001)));
17 Geometry::TransformedShape<float, 3> box2(
18 Geometry::Box<float>(0.005, 0.008, 0.023),
19 Transform::translation(Vector(0, -0.025, 0.0125)));
20 Geometry::TransformedShape<float, 3> box3(
21 Geometry::Box<float>(0.005, 0.008, 0.023),
22 Transform::translation(Vector(0, 0.025, 0.0125)));
23 vector<Shape *> shapes;
24 shapes.push_back(&box1);
25 shapes.push_back(&box2);
26 shapes.push_back(&box3);
27 shape = Geometry::Union<float, 3>::from_iterator_range(shapes.begin(), shapes.end()).clone();
30 const BeamGateType &BeamGateType::instance()
32 static BeamGateType type;