- 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
Stay organized with collections
Save and categorize content based on your preferences.
Nested Classes
class
Represents a texture Coordinate for a Vertex.
Inherited Methods
From class
java.lang.Object
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.
[[["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."],[[["\u003cp\u003e\u003ccode\u003eVertex\u003c/code\u003e represents a point in 3D space used for building \u003ccode\u003eRenderableDefinitions\u003c/code\u003e dynamically, with attributes like position, color, normal, and UV coordinates.\u003c/p\u003e\n"],["\u003cp\u003eIt is crucial for constructing custom renderables in Sceneform, offering control over individual vertices within a 3D model.\u003c/p\u003e\n"],["\u003cp\u003eYou can create and manipulate vertices through a \u003ccode\u003eVertex.Builder\u003c/code\u003e and access or modify its properties via getter and setter methods.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVertex\u003c/code\u003e has two nested classes, \u003ccode\u003eBuilder\u003c/code\u003e for creating instances and \u003ccode\u003eUvCoordinate\u003c/code\u003e for defining texture coordinates.\u003c/p\u003e\n"],["\u003cp\u003eRefer to \u003ccode\u003eModelRenderable.Builder\u003c/code\u003e and \u003ccode\u003eViewRenderable.Builder\u003c/code\u003e for practical use cases of \u003ccode\u003eVertex\u003c/code\u003e in building renderables.\u003c/p\u003e\n"]]],["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"],null,["# Vertex\n\npublic class **Vertex** \nRepresents a Vertex for a [RenderableDefinition](/sceneform/reference/com/google/ar/sceneform/rendering/RenderableDefinition). Used for constructing renderables\ndynamically. \n\n##### See Also\n\n- [ModelRenderable.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/ModelRenderable.Builder)\n- [ViewRenderable.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/ViewRenderable.Builder) \n\n### Nested Classes\n\n|-------|---|---|--------------------------------------------------------------------------------------------|\n| class | [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder) || Factory class for [Vertex](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex). |\n| class | [Vertex.UvCoordinate](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.UvCoordinate) || Represents a texture Coordinate for a Vertex. |\n\n### Public Methods\n\n|---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder) | [builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#builder())() |\n| [Color](/sceneform/reference/com/google/ar/sceneform/rendering/Color) | [getColor](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#getColor())() |\n| [Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3) | [getNormal](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#getNormal())() |\n| [Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3) | [getPosition](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#getPosition())() |\n| [Vertex.UvCoordinate](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.UvCoordinate) | [getUvCoordinate](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#getUvCoordinate())() |\n| void | [setColor](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#setColor(com.google.ar.sceneform.rendering.Color))([Color](/sceneform/reference/com/google/ar/sceneform/rendering/Color) color) |\n| void | [setNormal](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#setNormal(com.google.ar.sceneform.math.Vector3))([Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3) normal) |\n| void | [setPosition](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#setPosition(com.google.ar.sceneform.math.Vector3))([Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3) position) |\n| void | [setUvCoordinate](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex#setUvCoordinate(com.google.ar.sceneform.rendering.Vertex.UvCoordinate))([Vertex.UvCoordinate](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.UvCoordinate) uvCoordinate) |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| [Object](https://developer.android.com/reference/java/lang/Object) | clone() |\n| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object) arg0) |\n| void | finalize() |\n| final [Class](https://developer.android.com/reference/java/lang/Class)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](https://developer.android.com/reference/java/lang/String) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder)\n**builder**\n()\n\n\u003cbr /\u003e\n\n#### public [Color](/sceneform/reference/com/google/ar/sceneform/rendering/Color)\n**getColor**\n()\n\n\u003cbr /\u003e\n\n#### public [Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3)\n**getNormal**\n()\n\n\u003cbr /\u003e\n\n#### public [Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3)\n**getPosition**\n()\n\n\u003cbr /\u003e\n\n#### public [Vertex.UvCoordinate](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.UvCoordinate)\n**getUvCoordinate**\n()\n\n\u003cbr /\u003e\n\n#### public void\n**setColor**\n([Color](/sceneform/reference/com/google/ar/sceneform/rendering/Color) color)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| color | |\n|-------|---|\n\n#### public void\n**setNormal**\n([Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3) normal)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| normal | |\n|--------|---|\n\n#### public void\n**setPosition**\n([Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3) position)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| position | |\n|----------|---|\n\n#### public void\n**setUvCoordinate**\n([Vertex.UvCoordinate](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.UvCoordinate) uvCoordinate)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| uvCoordinate | |\n|--------------|---|"]]