Class: Google::Apis::VectortileV1::TriangleStrip

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vectortile_v1/classes.rb,
generated/google/apis/vectortile_v1/representations.rb,
generated/google/apis/vectortile_v1/representations.rb

Overview

Represents a strip of triangles. Each triangle uses the last edge of the previous one. The following diagram shows an example of a triangle strip, with each vertex labeled with its index in the vertex_index array. (1)-----(3) / \ / \ / \ / \ / \ / \ (0)-----(2)-----(4) Vertices may be in either clockwise or counter-clockwise order.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TriangleStrip

Returns a new instance of TriangleStrip.



782
783
784
# File 'generated/google/apis/vectortile_v1/classes.rb', line 782

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#vertex_indicesArray<Fixnum>

Index into the vertex_offset array representing the next vertex in the triangle strip. Corresponds to the JSON property vertexIndices

Returns:

  • (Array<Fixnum>)


780
781
782
# File 'generated/google/apis/vectortile_v1/classes.rb', line 780

def vertex_indices
  @vertex_indices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



787
788
789
# File 'generated/google/apis/vectortile_v1/classes.rb', line 787

def update!(**args)
  @vertex_indices = args[:vertex_indices] if args.key?(:vertex_indices)
end