VertexStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
Vertexrepresents a point in 3D space used for buildingRenderableDefinitionsdynamically, 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 aVertex.Builderand access or modify its properties via getter and setter methods.
Vertexhas two nested classes,Builderfor creating instances andUvCoordinatefor defining texture coordinates.
Refer toModelRenderable.BuilderandViewRenderable.Builderfor practical use cases ofVertexin building renderables.
public classVertex
Represents a Vertex for aRenderableDefinition. 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"]]