Class: Google::Apis::PolyV1::FormatComplexity

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_hintFixnum

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

Returns:

  • (Fixnum)


268
269
270
# File 'generated/google/apis/poly_v1/classes.rb', line 268

def lod_hint
  @lod_hint
end

#triangle_countFixnum

The estimated number of triangles. Corresponds to the JSON property triangleCount

Returns:

  • (Fixnum)


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