61 [[nodiscard]]
virtual bool can_write(
const std::string& filepath)
const = 0;
71 const std::string& filepath,
72 const std::vector<Kakshya::MeshData>& meshes,
virtual ~ModelWriter()=default
virtual std::vector< std::string > get_supported_extensions() const =0
File extensions handled by this writer (without dot).
virtual bool can_write(const std::string &filepath) const =0
Check whether this writer handles the given filepath.
virtual std::string get_last_error() const =0
Last error message or empty string.
virtual bool write(const std::string &filepath, const std::vector< Kakshya::MeshData > &meshes, const ModelWriteOptions &options={})=0
Write one or more meshes to disk as a single scene.
Abstract base for 3D model format writers.
Singleton registry dispatching single-shot writes by file extension.
WriterRegistry< ModelWriter > ModelWriterRegistry
Singleton registry dispatching model writes by file extension.
WriterFactory< ModelWriter > ModelWriterFactory
std::function< std::unique_ptr< Writer >()> WriterFactory
std::string material_name_override
Name to embed for the exported material, if the target format carries one.
std::string format_id
Assimp export format id, e.g.
Configuration for model writing.