GoogleApi.Poly.V1.Model.Format (google_api_poly v0.10.0) View Source
The same asset can be represented in different formats, for example, a WaveFront .obj file with its corresponding .mtl file or a Khronos glTF file with its corresponding .glb binary data. A format refers to a specific representation of an asset and contains all information needed to retrieve and describe this representation.
Attributes
-
formatComplexity(type:GoogleApi.Poly.V1.Model.FormatComplexity.t, default:nil) - Complexity stats about this representation of the asset. -
formatType(type:String.t, default:nil) - A short string that identifies the format type of this representation. Possible values are:FBX,GLTF,GLTF2,OBJ, andTILT. -
resources(type:list(GoogleApi.Poly.V1.Model.File.t), default:nil) - A list of dependencies of the root element. May include, but is not limited to, materials, textures, and shader programs. -
root(type:GoogleApi.Poly.V1.Model.File.t, default:nil) - The root of the file hierarchy. This will always be populated. For some format_types - such asTILT, which are self-contained - this is all of the data. Other types - such asOBJ- often reference other data elements. These are contained in the resources field.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Specs
t() :: %GoogleApi.Poly.V1.Model.Format{
formatComplexity: GoogleApi.Poly.V1.Model.FormatComplexity.t() | nil,
formatType: String.t() | nil,
resources: [GoogleApi.Poly.V1.Model.File.t()] | nil,
root: GoogleApi.Poly.V1.Model.File.t() | nil
}
Link to this section Functions
Specs
Unwrap a decoded JSON object into its complex fields.