HERE Android SDK Developer's Guide

LocalMesh

The class LocalMesh is a member of com.here.android.mpa.mapping .

Class Summary

public final class LocalMesh

extends com.here.android.mpa.mapping.Mesh, java.lang.Object

Represents the mesh data for a MapLocalModel.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in LocalMesh
Constructors

LocalMesh ()

Creates a LocalMesh .

Method Summary

Table 2. Methods in LocalMesh
Methods

public FloatBuffer getVertices ()

Gets a FloatBuffer representing a list of vertices associated with the LocalMesh .

public LocalMesh setVertices (FloatBuffer vertices)

Sets a FloatBuffer representing a list of vertices associated with the LocalMesh .

Class Details

Represents the mesh data for a MapLocalModel.

The properties of a LocalMesh include vertices, specified as triplets. A unit of 1 represents 1 meter in the real world.

Constructor Details

LocalMesh ()

Creates a LocalMesh .

Method Details

public FloatBuffer getVertices ()

Gets a FloatBuffer representing a list of vertices associated with the LocalMesh .

Note: vertices for a LocalMesh are specified as triplets.

Returns:

vertices associated with the mesh

public LocalMesh setVertices (FloatBuffer vertices)

Sets a FloatBuffer representing a list of vertices associated with the LocalMesh .

Note: vertices for a LocalMesh are specified as triplets.

Parameters:

  • vertices

    Desired FloatBuffer list of vertices, in triplets

Returns:

The updated LocalMesh

Throws:

  • IllegalArgumentException

    if vertices is empty.

  • IllegalArgumentException

    if vertices does not contain triplets of floats, i.e. vertices's capacity is not in multiples of 3.

  • IllegalArgumentException

    if vertices contains more than 65536 triplets, each representing a vertex.

See also:

java.nio.FloatBuffer