pub fn write_mdl_ascii<W: Write>(
w: &mut W,
mdl: &Mdl,
) -> Result<(), MdlAsciiError>Expand description
Writes an ASCII MDL representation to a writer.
The output follows the engine’s native ASCII MDL grammar and is compatible with mdledit, kotorblender, and the engine’s own text-mode parser.
§Errors
MdlAsciiError::Io when the writer fails, and
MdlAsciiError::InvalidData when the model holds something the ASCII
grammar cannot express.