Surfaces/TriangleBounds has six vertices (was ACTS-277)
Original author Shaun Roe @sroe
The TriangleBounds class has six vertices, three of which are never initialised; the latter three are initialised to the vertices passed to the constructor. i.e. the following code:
std::vector<Vector2D> vertices{ {0.,0.}, {3.,0.}, {3.,4.} }; //3-4-5 triangle
TriangleBounds triangleBoundsObject(vertices);
for (auto i: triangleBoundsObject.vertices()){
std::cout<<i<0><<", "<<i<1><<std::endl;
}
results in an output like:
0, 3.62225e+165
1.14485e+243, 9.38185e-154
6.4729e+170, 9.78191e+199
0, 0
3, 0
3, 4