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

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_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)


260
261
262
# File 'generated/google/apis/poly_v1/classes.rb', line 260

def lod_hint
  @lod_hint
end

#triangle_countFixnum

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

Returns:

  • (Fixnum)


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