FileGltfWriteOptions

ReferencesSince v8.3
Options used when writing a glTF file

Properties

CullBackfaces

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

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

DracoQuantizationBitsNormal

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

DracoQuantizationBitsPosition

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

DracoQuantizationBitsTextureCoordinate

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

ExportLayers

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

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

ExportOpenMeshes

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

ExportTextureCoordinates

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

ExportVertexColors

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

ExportVertexNormals

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

MapZToY

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

MeshParameters

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

SubDMeshType

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

SubDSurfaceMeshingDensity

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

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

UseDracoCompression

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

UseRenderMeshes

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

Methods

ToDictionary

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