QuadMeshBuilder (API Reference)
Class QuadMeshBuilder
Builder for a single quad.
-
Method Summary
Modifier and TypeMethodDescriptionwithTextureCoordinates(Anchor2D a, Anchor2D b, Anchor2D c, Anchor2D d) Adds texture coordinates to a quad.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, @NonNull Anchor2D d) Adds texture coordinates to a quad. 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.quad(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)b-Texture coordinate for vertex b. See
MeshBuilder.quad(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)c-Texture coordinate for vertex c. See
MeshBuilder.quad(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)d-Texture coordinate for vertex d. See
MeshBuilder.quad(com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D, com.here.sdk.core.Point3D)- Returns:
A
MeshBuilderinstance.
-