Skip to content

Commit 19a4d67

Browse files
authored
Add missing headers in export_pov. (openscad#5365)
Also, replace one 'auto' variable with explicit type, so that clang-tidy does not consider PolySet an unneeded header.
1 parent 4131652 commit 19a4d67

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/io/export_pov.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,19 @@
2626

2727
#include "io/export.h"
2828

29+
#include <cstddef>
30+
#include <memory>
31+
#include <ostream>
32+
#include <vector>
33+
34+
#include "geometry/Geometry.h"
2935
#include "geometry/PolySet.h"
3036
#include "geometry/PolySetUtils.h"
31-
37+
#include "geometry/linalg.h"
3238

3339
void export_pov(const std::shared_ptr<const Geometry>& geom, std::ostream& output, const ExportInfo& exportInfo)
3440
{
35-
auto ps = PolySetUtils::getGeometryAsPolySet(geom);
41+
std::shared_ptr<const PolySet> ps = PolySetUtils::getGeometryAsPolySet(geom);
3642
if (Feature::ExperimentalPredictibleOutput.is_enabled()) {
3743
ps = createSortedPolySet(*ps);
3844
}

0 commit comments

Comments
 (0)