|
scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
|
Read and write STL files (.stl). More...
#include <scimesh/mesh.h>#include "stl_reader.h"#include <fstream>#include <cstring>#include <stdexcept>#include <string>
Go to the source code of this file.
Namespaces | |
| namespace | scimesh |
| namespace | scimesh::stl_io |
| Functions for reading and writing STL files. | |
Functions | |
| Mesh | scimesh::stl_io::read_stl (const std::string &path) |
| Load a mesh from an STL file (ASCII or binary). | |
| void | scimesh::stl_io::write_stl_binary (const std::string &path, const Mesh &mesh) |
| Write a mesh to a binary STL file. | |
| void | scimesh::stl_io::write_stl_ascii (const std::string &path, const Mesh &mesh) |
| Write a mesh to an ASCII STL file. | |
| void | scimesh::stl_io::write_stl (const std::string &path, const Mesh &mesh, const std::string &format) |
| Write a mesh to an STL file, choosing the format. | |
Read and write STL files (.stl).
STL (STereoLithography) is the standard format for 3D printing. It stores only triangle geometry — no colors, normals, or materials. Both ASCII and binary STL files are supported for reading; writing supports both formats as well.
Definition in file stl_io.h.