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 a
Vertex.Builderand access or modify its properties via getter and setter methods. -
Vertexhas two nested classes,Builderfor creating instances andUvCoordinatefor defining texture coordinates. -
Refer to
ModelRenderable.BuilderandViewRenderable.Builderfor practical use cases ofVertexin building renderables.
Represents a Vertex for a RenderableDefinition. Used for constructing renderables
dynamically.
Nested Classes
| class | Vertex.Builder | Factory class for Vertex. |
|
| class | Vertex.UvCoordinate | Represents a texture Coordinate for a Vertex. | |
Public Methods
| static Vertex.Builder |
builder()
|
| Color |
getColor()
|
| Vector3 | |
| Vector3 | |
| Vertex.UvCoordinate | |
| void | |
| void | |
| void |
setPosition(Vector3 position)
|
| void |
setUvCoordinate(Vertex.UvCoordinate uvCoordinate)
|