Vertex
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
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.
public class
Vertex
Represents a Vertex for a RenderableDefinition. Used for constructing renderables
dynamically.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[],["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"]]