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
|
||||
TranslateGeometry(Vector2 offset)
|
virtual override void
Translates the geometry by the supplied offset. This does not change the position of the Origin.
Parameters |
|
|
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 |
|
Protected functions
CalculateLocalBoundingBox
virtual override Bounds CalculateLocalBoundingBox()
TranslateGeometry
virtual override void TranslateGeometry( Vector2 offset )
Translates the geometry by the supplied offset. This does not change the position of the Origin.
offset
|
An offset vector used for translation.
|