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

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 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.



459
460
461
# File 'generated/google/apis/vectortile_v1/classes.rb', line 459

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



450
451
452
# File 'generated/google/apis/vectortile_v1/classes.rb', line 450

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



457
458
459
# File 'generated/google/apis/vectortile_v1/classes.rb', line 457

def vertex_offsets
  @vertex_offsets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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