diff --git a/fj-export/src/lib.rs b/fj-export/src/lib.rs index cb0a9cf44..635802f8c 100644 --- a/fj-export/src/lib.rs +++ b/fj-export/src/lib.rs @@ -1,8 +1,16 @@ +//! Exporting Fornjot models to external files + +#![deny(missing_docs)] + use std::path::Path; use fj_interop::mesh::Mesh; use fj_math::Point; +/// Export the provided mesh to the file at the given path +/// +/// Currently only 3MF is supported as an export format. The file extension of +/// the provided path is ignored. pub fn export(mesh: &Mesh>, path: &Path) -> Result<(), Error> { let vertices = mesh.vertices().map(|vertex| vertex.into()).collect();