- Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk) with version 1.16.0.
- This site (developers.google.com/sceneform) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.
- Do not use version 1.17.0 of the Sceneform Maven artifacts.
- The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.
Vertex
Inherited Methods
From class
java.lang.Object
Object
|
clone()
|
boolean
|
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
public
void
setColor
(Color color)
public
void
setNormal
(Vector3 normal)
public
void
setPosition
(Vector3 position)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[null,null,["Last updated 2024-06-26 UTC."],[[["`Vertex` represents a point in 3D space used for building `RenderableDefinitions` dynamically, with attributes like position, color, normal, and UV coordinates."],["It is crucial for constructing custom renderables in Sceneform, offering control over individual vertices within a 3D model."],["You can create and manipulate vertices through a `Vertex.Builder` and access or modify its properties via getter and setter methods."],["`Vertex` has two nested classes, `Builder` for creating instances and `UvCoordinate` for defining texture coordinates."],["Refer to `ModelRenderable.Builder` and `ViewRenderable.Builder` for practical use cases of `Vertex` in building renderables."]]],["The `Vertex` class is used to construct renderables dynamically, representing a vertex for a `RenderableDefinition`. It offers a `Vertex.Builder` for creation and a `Vertex.UvCoordinate` for texture coordinates. Public methods allow getting and setting properties like color, normal, position, and UV coordinate. Actions include creating a `Vertex.Builder` via `builder()`, accessing vertex data through getters, and modifying attributes using setters such as `setColor`, `setNormal`, `setPosition`, and `setUvCoordinate`.\n"]]