Google.Maps.Feature.ModeledStructure

A MapFeature that represents a modeled structure. For example, a building with detailed vertex/triangle data.

Summary

Backed by ModeledVolume shape geometry.

Inheritance

Inherits from: Google.Maps.Feature.MapFeature

Constructors and Destructors

ModeledStructure(ModeledVolume shape, MercatorTileCoords mercatorTileCoords, StructureMetadata metadata)
The ModeledStructure class constructor.

Properties

DefaultGameObjectName
override string
The default name to use for the associated GameObject.
Metadata
The feature metadata as a StructureMetadata

Public attributes

Shape
readonly ModeledVolume
A geometric representation of the ModeledStructure.

Public functions

GetShape()
virtual override MapFeatureShape
Returns the shape of a MapFeature if it has one.
Returns
Returns a MapFeatureShape instance representing the shape of the feature if it has one, otherwise returns null.

Properties

DefaultGameObjectName

override string DefaultGameObjectName

The default name to use for the associated GameObject.

This name is used when the MapFeatureMetadata doesn't have an explicit display name.

Metadata

StructureMetadata Metadata

The feature metadata as a StructureMetadata

Public attributes

Shape

readonly ModeledVolume Shape

A geometric representation of the ModeledStructure.

Public functions

GetShape

virtual override MapFeatureShape GetShape()

Returns the shape of a MapFeature if it has one. Returns

Returns a MapFeatureShape instance representing the shape of the feature if it has one, otherwise returns null.

ModeledStructure

 ModeledStructure(
  ModeledVolume shape,
  MercatorTileCoords mercatorTileCoords,
  StructureMetadata metadata
)

The ModeledStructure class constructor.

Details
Parameters
shape
A geometric representation of the Structure.
mercatorTileCoords
The coordinates of the tile that contains this feature.
metadata
Associated metadata.