Google.Maps.Feature.Shape.ModeledVolume

A geometric representation of a 3D volume constructed by explicitly specifying geometry data.

Summary

Inheritance

Inherits from: Google.Maps.Feature.Shape.MapFeatureShape

Constructors and Destructors

ModeledVolume(ICollection< Vector3 > vertices, ICollection< int > vertexBreaks, ICollection< int > triangles)
The ModeledVolume class constructor.

Public attributes

Triangles
readonly int[]
The triangles that make up the ModeledVolume. Each triangle is represented as a triplet of indexes into the ModeledVolume's Vertices array.
VertexBreaks
readonly int[]
Separates the ModeledVolume's vertices into discrete intervals, where each interval describes an individual mesh.
Vertices
readonly Vector3[]
The ModeledVolume's vertices.

Protected functions

CalculateLocalBoundingBox()
virtual override Bounds
Calculates and returns a local bounding box for all of the geometry represented by this object. The bounding box is located relative to the Shape's origin, which means that the center of it might not be at (0, 0) if the Origin is not at the center of all of the vertices.
TranslateGeometry(Vector2 offset)
virtual override void
Translates the geometry by the supplied offset. This does not change the position of the Origin.
Parameters
offset
An offset vector used for translation.

Public attributes

Triangles

readonly int[] Triangles

The triangles that make up the ModeledVolume. Each triangle is represented as a triplet of indexes into the ModeledVolume's Vertices array.

VertexBreaks

readonly int[] VertexBreaks

Separates the ModeledVolume's vertices into discrete intervals, where each interval describes an individual mesh.

Vertices

readonly Vector3[] Vertices

The ModeledVolume's vertices.

Public functions

ModeledVolume

 ModeledVolume(
  ICollection< Vector3 > vertices,
  ICollection< int > vertexBreaks,
  ICollection< int > triangles
)

The ModeledVolume class constructor.

Details
Parameters
vertices
The vertices that make up the mesh.
vertexBreaks
The ModeledVolume's vertices, separated into discrete intervals, with each one describing an individual polygon.
triangles
A list of vertex indices that make up the mesh triangles. Each triplet represents a distinct triangle.

Protected functions

CalculateLocalBoundingBox

virtual override Bounds CalculateLocalBoundingBox()

Calculates and returns a local bounding box for all of the geometry represented by this object. The bounding box is located relative to the Shape's origin, which means that the center of it might not be at (0, 0) if the Origin is not at the center of all of the vertices.

TranslateGeometry

virtual override void TranslateGeometry(
  Vector2 offset
)

Translates the geometry by the supplied offset. This does not change the position of the Origin. Parameters

offset
An offset vector used for translation.