FileGltfWriteOptions

ReferencesSince v8.3
Options used when writing a glTF file

Properties

CullBackfaces

#Since v8.3
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.
public bool CullBackfaces { get; set; }

DracoCompressionLevel

#Since v8.3
The level of compression used by draco in the range of 1 to 10 inclusive.
public int DracoCompressionLevel { get; set; }

DracoQuantizationBitsNormal

#Since v8.3
The number of bits used when quantizing mesh normals in the range of 8 to 32 inclusive
public int DracoQuantizationBitsNormal { get; set; }

DracoQuantizationBitsPosition

#Since v8.3
The number of bits used when quantizing mesh vertex positions in the range of 8 to 32 inclusive
public int DracoQuantizationBitsPosition { get; set; }

DracoQuantizationBitsTextureCoordinate

#Since v8.3
The number of bits used when quantizing mesh texture coordinates in the range of 8 to 32 inclusive
public int DracoQuantizationBitsTextureCoordinate { get; set; }

ExportLayers

#Since v8.3
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.
public bool ExportLayers { get; set; }

ExportMaterials

#Since v8.3
Setting to determine whether or not materials are written to the glTF file
public bool ExportMaterials { get; set; }

ExportOpenMeshes

#Since v8.3
Enable/disable the exporting of open meshes
public bool ExportOpenMeshes { get; set; }

ExportTextureCoordinates

#Since v8.3
Enable/disable the exporting of texture coordinates
public bool ExportTextureCoordinates { get; set; }

ExportVertexColors

#Since v8.3
Enable/disable the export of vertex colors
public bool ExportVertexColors { get; set; }

ExportVertexNormals

#Since v8.3
Enable/disable the exporting of vertex normals
public bool ExportVertexNormals { get; set; }

MapZToY

#Since v8.3
Setting to transform Rhino's Z axis to glTF's Y axis
public bool MapZToY { get; set; }

MeshParameters

#Since v9.0
Mesh parameters to use when meshing geometry that is not already a mesh. Only used when UseRenderMeshes is disabled.
public MeshingParameters MeshParameters { get; set; }

SubDMeshType

#Since v8.3
The mesh type for exported SubDs
public FileGltfWriteOptions.SubDMeshing SubDMeshType { get; set; }

SubDSurfaceMeshingDensity

#Since v8.3
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.
public int SubDSurfaceMeshingDensity { get; set; }

UseDisplayColorForUnsetMaterials

#Since v8.3
Setting to display color as material when material index for object is -1.
public bool UseDisplayColorForUnsetMaterials { get; set; }

UseDracoCompression

#Since v8.3
Enable/disable the use of Draco mesh compression in the glTF file
public bool UseDracoCompression { get; set; }

UseRenderMeshes

#Since v9.0
When enabled the meshes already generated for rendering the objects are exported. When disabled the objects are meshed for export using MeshParameters.
public bool UseRenderMeshes { get; set; }

Methods

ToDictionary

#Since v8.3
Create a dictionary of these options. This dictionary can be passed to the RhinoDoc.Export function
public ArchivableDictionary ToDictionary()