TriangleMeshBuilder (API Reference)
Package com.here.sdk.mapview
Class TriangleMeshBuilder
java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.MeshBuilder
com.here.sdk.mapview.TriangleMeshBuilder
Builder for a single triangle.
-
Method Summary
Modifier and TypeMethodDescriptionwithTextureCoordinates(Anchor2D a, Anchor2D b, Anchor2D c) Adds texture coordinates to a triangle.Methods inherited from class com.here.sdk.mapview.MeshBuilder
build, quad, triangle
-
Method Details
-
withTextureCoordinates
@NonNull public MeshBuilder withTextureCoordinates(@NonNull Anchor2D a, @NonNull Anchor2D b, @NonNull Anchor2D c) Adds texture coordinates to a triangle. Coordinates are specified as
<u,v>with<0,0>representing the bottom-left and<1,1>upper-right corner.- Parameters:
a-Texture coordinate for vertex a. See
MeshBuilder.triangle(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)b-Texture coordinate for vertex b. See
MeshBuilder.triangle(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)c-Texture coordinate for vertex c. See
MeshBuilder.triangle(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)- Returns:
A
MeshBuilderinstance.
-