Optionaldocument: TOptionalmeshDeflection: numberOptionalmeshAngle: numberOptionalmergeFaces: booleanOptionalforceUVExport: booleanOptionalfileName: stringOptionaltryDownload: booleanThe document from buildAssemblyDocument or loadStepToDoc.
OptionalmeshHow closely triangles follow curved surfaces, in model units; smaller gives a finer mesh.
OptionalmeshThe largest angle, in radians, between the normals of neighboring triangles; smaller gives smoother curves.
OptionalinternalWhen true, extra vertices are added inside curved faces for a closer fit, at the cost of speed.
OptionalcontrolWhen true, an extra pass refines triangles that bulge beyond the deflection, at the cost of speed.
OptionalmergeWhen true, faces with the same material are joined into one mesh; false keeps every face separate.
OptionalforceWhen true, texture coordinates are written even for meshes without textures.
OptionalupWhich axis points up in the document. A z-up document is turned so that z becomes glTF's y; a y-up one is written as it is.
OptionalfileThe name the downloaded file gets; it should end in .glb.
OptionaltryWhen true, a browser download of the file is started where that is possible; the kernel itself only returns the bytes.
OptionaluseWhen true, the geometry is compressed with Draco.
OptionaldracoHow hard Draco compresses, from 0 for fastest and largest to 10 for slowest and smallest.
OptionaldracoHow many bits each vertex position keeps; fewer bits mean a smaller file and less precision.
OptionaldracoHow many bits each normal keeps; fewer bits mean a smaller file and less precision.
OptionaldracoHow many bits each texture coordinate keeps; fewer bits mean a smaller file and less precision.
OptionaldracoHow many bits each vertex color keeps; fewer bits mean a smaller file and less precision.
OptionaldracoHow many bits other vertex attributes keep; fewer bits mean a smaller file and less precision.
OptionaldracoWhen true, one quantization grid is used for every attribute instead of one per attribute.
A document, meshing settings and Draco settings for
assembly.manager.exportDocumentToGltfWithDraco, which writes a Draco-compressed glTF.