Class: Google::Apis::PolyV1::FormatComplexity
- Inherits:
-
Object
- Object
- Google::Apis::PolyV1::FormatComplexity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/poly_v1/classes.rb,
generated/google/apis/poly_v1/representations.rb,
generated/google/apis/poly_v1/representations.rb
Overview
Information on the complexity of this Format.
Instance Attribute Summary collapse
-
#lod_hint ⇒ Fixnum
A non-negative integer that represents the level of detail (LOD) of this format relative to other formats of the same asset with the same format_type.
-
#triangle_count ⇒ Fixnum
The estimated number of triangles.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FormatComplexity
constructor
A new instance of FormatComplexity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FormatComplexity
Returns a new instance of FormatComplexity
275 276 277 |
# File 'generated/google/apis/poly_v1/classes.rb', line 275 def initialize(**args) update!(**args) end |
Instance Attribute Details
#lod_hint ⇒ Fixnum
A non-negative integer that represents the level of detail (LOD) of this
format relative to other formats of the same asset with the same
format_type.
This hint allows you to sort formats from the most-detailed (0) to
least-detailed (integers greater than 0).
Corresponds to the JSON property lodHint
268 269 270 |
# File 'generated/google/apis/poly_v1/classes.rb', line 268 def lod_hint @lod_hint end |
#triangle_count ⇒ Fixnum
The estimated number of triangles.
Corresponds to the JSON property triangleCount
273 274 275 |
# File 'generated/google/apis/poly_v1/classes.rb', line 273 def triangle_count @triangle_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
280 281 282 283 |
# File 'generated/google/apis/poly_v1/classes.rb', line 280 def update!(**args) @lod_hint = args[:lod_hint] if args.key?(:lod_hint) @triangle_count = args[:triangle_count] if args.key?(:triangle_count) end |