# FileGltfWriteOptions class

Namespace: [Rhino.FileIO](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.fileio.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md) · Since v8.3

```cs
public class FileGltfWriteOptions
```

Options used when writing a glTF file

## Properties

- [CullBackfaces](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/cullbackfaces.md): Setting that determines whether or not the meshes in the glTF will be rendered with or without backface culling. Known as DoubleSided in the glTF specification.
- [DracoCompressionLevel](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/dracocompressionlevel.md): The level of compression used by draco in the range of 1 to 10 inclusive.
- [DracoQuantizationBitsNormal](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/dracoquantizationbitsnormal.md): The number of bits used when quantizing mesh normals in the range of 8 to 32 inclusive
- [DracoQuantizationBitsPosition](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/dracoquantizationbitsposition.md): The number of bits used when quantizing mesh vertex positions in the range of 8 to 32 inclusive
- [DracoQuantizationBitsTextureCoordinate](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/dracoquantizationbitstexturecoordinate.md): The number of bits used when quantizing mesh texture coordinates in the range of 8 to 32 inclusive
- [ExportLayers](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/exportlayers.md): glTF uses a scene hierarchy structure where nodes are organized in a parent-child relationship. This setting enables/disables the writing of empty nodes with the same names as layers and places exported objects a children of the corresponding layer node.
- [ExportMaterials](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/exportmaterials.md): Setting to determine whether or not materials are written to the glTF file
- [ExportOpenMeshes](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/exportopenmeshes.md): Enable/disable the exporting of open meshes
- [ExportTextureCoordinates](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/exporttexturecoordinates.md): Enable/disable the exporting of texture coordinates
- [ExportVertexColors](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/exportvertexcolors.md): Enable/disable the export of vertex colors
- [ExportVertexNormals](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/exportvertexnormals.md): Enable/disable the exporting of vertex normals
- [MapZToY](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/mapztoy.md): Setting to transform Rhino's Z axis to glTF's Y axis
- [MeshParameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/meshparameters.md): Mesh parameters to use when meshing geometry that is not already a mesh. Only used when [FileGltfWriteOptions.UseRenderMeshes](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/userendermeshes.md) is disabled.
- [SubDMeshType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/subdmeshtype.md): The mesh type for exported SubDs
- [SubDSurfaceMeshingDensity](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/subdsurfacemeshingdensity.md): Determines how coarse the mesh output will be when surface meshing subd objects See comments for ON_SubDDisplayParameters in opennurbs_mesh.h for details regarding numbers used.
- [UseDisplayColorForUnsetMaterials](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/usedisplaycolorforunsetmaterials.md): Setting to display color as material when material index for object is -1.
- [UseDracoCompression](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/usedracocompression.md): Enable/disable the use of Draco mesh compression in the glTF file
- [UseRenderMeshes](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/userendermeshes.md): When enabled the meshes already generated for rendering the objects are exported. When disabled the objects are meshed for export using [FileGltfWriteOptions.MeshParameters](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/meshparameters.md).

## Methods

- [ToDictionary](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filegltfwriteoptions/todictionary.md): Create a dictionary of these options. This dictionary can be passed to the RhinoDoc.Export function
