I have a glb model that is the size of around 7mb I am using STLExporter to convert it into stl and then export it, but the issue is that the size increases to 90 mb after export.
Can anyone help me regarding this, here is the code I am using:
function handleExportModel() {
document.getElementById('loader-container').style.display = 'flex';
setTimeout(() => {
const exporter = new STLExporter();
const stlString = exporter.parse(mesh);
const blob = new Blob([stlString], { type: 'text/plain' });
const link = document.createElement('a');
link.style.display = 'none';
document.body.appendChild(link);
link.href = URL.createObjectURL(blob);
link.download = 'model.stl';
link.click();
document.body.removeChild(link);
URL.revokeObjectURL(link.href);
document.getElementById('loader-container').style.display = 'none';
}, 0);
}