#ifndef MSP_GEOMETRY_LOADER_H_
#define MSP_GEOMETRY_LOADER_H_
-#include <list>
+#include <vector>
#include <msp/datafile/loader.h>
#include "extrudedshape.h"
#include "halfspace.h"
{
protected:
bool single = true;
- std::list<std::unique_ptr<Shape<T, D>>> shapes;
+ std::vector<std::unique_ptr<Shape<T, D>>> shapes;
DimensionIndependentLoader(bool = true);
#ifndef MSP_GEOMETRY_SHAPE_H_
#define MSP_GEOMETRY_SHAPE_H_
-#include <list>
+#include <deque>
#include <memory>
#include <vector>
#include <msp/linal/vector.h>
throw std::invalid_argument("Shape::bisect_axis_aligned_bounding_box");
// Form the root cell from the loosest approximation of a bounding box.
- std::list<CoverageCell> queue;
+ std::deque<CoverageCell> queue;
queue.push_back(CoverageCell());
CoverageCell &root = queue.front();
root.level = 0;