- 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.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Methods
From class
java.lang.Object
Public Constructors
public
Vertex.Builder
()
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.Builder\u003c/code\u003e is a factory class used to create \u003ccode\u003eVertex\u003c/code\u003e objects in Sceneform.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to set the position, normal, color, and UV coordinates of a vertex.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method is used to finalize and create the \u003ccode\u003eVertex\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eInherited methods from \u003ccode\u003ejava.lang.Object\u003c/code\u003e are also available.\u003c/p\u003e\n"]]],["The `Vertex.Builder` class is a factory for creating `Vertex` objects. It provides methods to set the vertex's properties: `setColor` for color assignment, `setNormal` to define the normal vector, `setPosition` to specify spatial coordinates, and `setUvCoordinate` for texture mapping. The `build` method then finalizes the creation of the `Vertex` object using the defined parameters. The default constructor `Vertex.Builder()` exists as well.\n"],null,["# Vertex.Builder\n\npublic static final class **Vertex.Builder** \nFactory class for [Vertex](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex). \n\n### Public Constructors\n\n|---|------------------------------------------------------------------------------------------------------------|\n| | [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder#Vertex.Builder())() |\n\n### Public Methods\n\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Vertex](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex) | [build](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder#build())() |\n| [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder) | [setColor](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder#setColor(com.google.ar.sceneform.rendering.Color))([Color](/sceneform/reference/com/google/ar/sceneform/rendering/Color) color) |\n| [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder) | [setNormal](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder#setNormal(com.google.ar.sceneform.math.Vector3))([Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3) normal) |\n| [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder) | [setPosition](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder#setPosition(com.google.ar.sceneform.math.Vector3))([Vector3](/sceneform/reference/com/google/ar/sceneform/math/Vector3) position) |\n| [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder) | [setUvCoordinate](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder#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 Constructors\n-------------------\n\n#### public\n**Vertex.Builder**\n()\n\n\u003cbr /\u003e\n\nPublic Methods\n--------------\n\n#### public [Vertex](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex)\n**build**\n()\n\n\u003cbr /\u003e\n\n#### public [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder)\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 [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder)\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 [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder)\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 [Vertex.Builder](/sceneform/reference/com/google/ar/sceneform/rendering/Vertex.Builder)\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|--------------|---|"]]