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

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.