16class BinaryStreamReader;
22namespace DataHandling {
26 static constexpr int HEADER_SIZE = 80;
27 static constexpr uint32_t TRIANGLE_DATA_SIZE = 50;
28 static constexpr uint32_t TRIANGLE_COUNT_DATA_SIZE = 4;
29 static constexpr uint32_t VECTOR_DATA_SIZE = 12;
30 static constexpr std::ios_base::openmode openMode = std::ios::in | std::ios::binary;
32 :
LoadStl(
std::move(
std::move(filename)), openMode, scaleType) {}
34 :
LoadStl(
std::move(
std::move(filename)), openMode, scaleType,
std::move(
std::move(params))) {}
35 std::unique_ptr<Geometry::MeshObject> readShape()
override;
36 static bool isBinarySTL(
const std::string &filename);
LoadBinaryStl(std::string filename, ScaleUnits scaleType, ReadMaterial::MaterialParameters params)
LoadBinaryStl(std::string filename, ScaleUnits scaleType)
Assists with reading a binary file by providing standard overloads for the istream operators (>>) to ...
Helper class which provides the Collimation Length for SANS instruments.
This struct contains the parameters for constructing a material, and gives them a default value for e...