Memory-maps the file and uses openMemory() instead of openFile(). For
efficient data formats (such as glTF) can avoid reading the whole blob
if only the metadata or a part of the file is needed (for example the
peak usage for --info-materials with the Buggy.glb example model went
from 8.5 MB to 991 kB, as it reads just the JSON at the start and never
even pages in the buffer blobs at the end).
This currently only works for standalone files, files that reference
external images etc. would need to have file callbacks implemented. And
it's Sunday and I'm lazy.
.addBooleanOption("map").setHelp("map","memory-map the input for zero-copy import (works only for standalone files)")
#endif
.addOption("only-attributes").setHelp("only-attributes","include only attributes of given IDs in the output","\"i j …\"")
.addOption("only-attributes").setHelp("only-attributes","include only attributes of given IDs in the output","\"i j …\"")
.addBooleanOption("remove-duplicates").setHelp("remove-duplicates","remove duplicate vertices in the mesh after import")
.addBooleanOption("remove-duplicates").setHelp("remove-duplicates","remove duplicate vertices in the mesh after import")
.addOption("remove-duplicates-fuzzy").setHelp("remove-duplicates-fuzzy","remove duplicate vertices with fuzzy comparison in the mesh after import","EPSILON")
.addOption("remove-duplicates-fuzzy").setHelp("remove-duplicates-fuzzy","remove duplicate vertices with fuzzy comparison in the mesh after import","EPSILON")