Function puma::export_STL(std::vector<puma::Triangle<float>> *, bool, std::string)

Function Documentation

bool puma::export_STL(std::vector<puma::Triangle<float>> *triangles, bool Ascii, std::string fileName)

Exports a vector of puma::Triangles to an STL file.

Parameters
  • triangles – Pointer to the triangle data structure to be exported.

  • Ascii – False if exporting as binary STL, true if exporting at ASCII stl. Typically false.

  • fileName – std::string containing the location and filename for export, Ex: /home/jsmith/Desktop/myTriangles.stl.

Returns

bool True if output was successful, False if an error occured.