Class: Google::Apis::VectortileV1::ModeledVolume

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

Overview

Represents a modeled volume in 3D space. Used to represent 3D buildings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModeledVolume

Returns a new instance of ModeledVolume.

[View source]

464
465
466
# File 'lib/google/apis/vectortile_v1/classes.rb', line 464

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

Instance Attribute Details

#stripsArray<Google::Apis::VectortileV1::TriangleStrip>

The triangle strips present in this mesh. Corresponds to the JSON property strips


455
456
457
# File 'lib/google/apis/vectortile_v1/classes.rb', line 455

def strips
  @strips
end

#vertex_offsetsGoogle::Apis::VectortileV1::Vertex3DList

3D vertex list used for modeled volumes. Each entry represents an offset from the previous one in local tile coordinates. The first coordinate is offset from (0, 0, 0). Corresponds to the JSON property vertexOffsets


462
463
464
# File 'lib/google/apis/vectortile_v1/classes.rb', line 462

def vertex_offsets
  @vertex_offsets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

469
470
471
472
# File 'lib/google/apis/vectortile_v1/classes.rb', line 469

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