Function puma::export_STL(Workspace *, puma::Cutoff, bool, std::string)

Function Documentation

bool puma::export_STL(Workspace *work, puma::Cutoff cutoff, bool Ascii, std::string fileName)

Applies Marching Cubes to a puma::Workspace and exports the traingles to an STL file.

Parameters
  • work – Pointer to the workspace to be exported.

  • lowValue – Low Grayscale cutoff for material phase. For example FiberForm in pumapy/data/200_fiberform.tif is 87.

  • lowValue – High Grayscale cutoff for material phase. Often 255.

  • 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.