Newer
Older
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAHANDLING_LOADASCIISTL_H_
#define MANTID_DATAHANDLING_LOADASCIISTL_H_
#include "MantidGeometry/Objects/MeshObject.h"
#include "MantidKernel/V3D.h"
#include <fstream>
namespace Mantid {
namespace DataHandling {
public:
LoadAsciiStl(std::string filename) : LoadStl(filename) {}
std::unique_ptr<Geometry::MeshObject> readStl() override;
static bool isAsciiSTL(std::string filename);
bool readSTLTriangle(std::ifstream &file, Kernel::V3D &v1, Kernel::V3D &v2,
Kernel::V3D &v3);
bool readSTLVertex(std::ifstream &file, Kernel::V3D &vertex);
bool readSTLLine(std::ifstream &file, std::string const &type);
};
} // namespace DataHandling
} // namespace Mantid
#endif /* MANTID_DATAHANDLING_LOADASCIISTL_H_ */