Vertex

  • 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.

Nested Classes

class
Factory class for Vertex
class
Represents a texture Coordinate for a Vertex. 

Public Methods

static Vertex.Builder
Color
Vector3
Vector3
Vertex.UvCoordinate
void
setColor ( Color color)
void
setNormal ( Vector3 normal)
void
setPosition ( Vector3 position)
void

Inherited Methods

Public Methods

public static Vertex.Builder builder ()

public Color getColor ()

public Vector3 getNormal ()

public Vector3 getPosition ()

public Vertex.UvCoordinate getUvCoordinate ()

public void setColor ( Color color)

Parameters
color

public void setNormal ( Vector3 normal)

Parameters
normal

public void setPosition ( Vector3 position)

Parameters
position

public void setUvCoordinate ( Vertex.UvCoordinate uvCoordinate)

Parameters
uvCoordinate
Design a Mobile Site
View Site in Mobile | Classic
Share by: