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.
Constructor Details
#initialize(**args) ⇒ FormatComplexity
Returns a new instance of FormatComplexity.
267 268 269 |
# File 'generated/google/apis/poly_v1/classes.rb', line 267 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
260 261 262 |
# File 'generated/google/apis/poly_v1/classes.rb', line 260 def lod_hint @lod_hint end |
#triangle_count ⇒ Fixnum
The estimated number of triangles.
Corresponds to the JSON property triangleCount
265 266 267 |
# File 'generated/google/apis/poly_v1/classes.rb', line 265 def triangle_count @triangle_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
272 273 274 275 |
# File 'generated/google/apis/poly_v1/classes.rb', line 272 def update!(**args) @lod_hint = args[:lod_hint] if args.key?(:lod_hint) @triangle_count = args[:triangle_count] if args.key?(:triangle_count) end |