OpenXRAndroidSceneSubmeshData
Inherits: RefCounted
Wraps the XrSceneSubmeshDataANDROID struct.
Description
Wraps the XrSceneSubmeshDataANDROID struct.
Methods
Array |
get_arrays ( ) const |
Vector3 |
get_bounds ( ) const |
Array |
get_indexed_arrays ( ) const |
Array |
get_indexed_vertex_semantics ( ) const |
int |
get_last_update_time ( ) const |
StringName |
get_submesh_id ( ) const |
Transform3D |
get_transform ( ) const |
get_update_state ( ) const |
|
Array |
get_vertex_semantics ( ) const |
Enumerations
enum UpdateState:
UpdateState UPDATE_STATE_CREATED = 0
The submesh was just created.
UpdateState UPDATE_STATE_UNCHANGED = 1
The submesh is unchanged since the last call to OpenXRAndroidSceneMeshing.get_submesh_data.
NOTE: get_transform may have changed; the array data (vertices, indices, etc) are not changed.
UpdateState UPDATE_STATE_UPDATED = 2
The submesh's array data (vertices, indices, etc) have changed.
UpdateState UPDATE_STATE_DELETED = 3
The submesh was deleted.
enum SemanticLabel:
SemanticLabel SEMANTIC_LABEL_OTHER = 0
A vertex is for something else.
SemanticLabel SEMANTIC_LABEL_FLOOR = 1
A vertex is for a floor.
SemanticLabel SEMANTIC_LABEL_CEILING = 2
A vertex is for a ceiling.
SemanticLabel SEMANTIC_LABEL_WALL = 3
A vertex is for a wall.
SemanticLabel SEMANTIC_LABEL_TABLE = 4
A vertex is for a table.
Method Descriptions
Array get_arrays ( ) const
Returns an Array that can be used as the arrays parameter in ArrayMesh.add_surface_from_arrays with Mesh.PRIMITIVE_TRIANGLES.
The Array contains data at the Mesh.ARRAY_VERTEX index.
The Array may contain data at the Mesh.ARRAY_NORMAL index if enable_normals was true in OpenXRAndroidSceneMeshing.initialize.
The Array may contain data at the Mesh.ARRAY_CUSTOM0 index if semantic_label_set was true in OpenXRAndroidSceneMeshing.initialize.
Vector3 get_bounds ( ) const
Get the global bounds of the mesh as a Vector3 where x, y, z correspond to the width, height, and depth, in meters, of a bounding box centered and oriented at get_transform.
Array get_indexed_arrays ( ) const
Returns an indexed Array that can be used as the arrays parameter in ArrayMesh.add_surface_from_arrays with Mesh.PRIMITIVE_TRIANGLES.
The Array contains data at the Mesh.ARRAY_VERTEX index.
The Array contains data at the Mesh.ARRAY_INDEX index.
The Array may contain data at the Mesh.ARRAY_NORMAL index if enable_normals was true in OpenXRAndroidSceneMeshing.initialize.
The Array may contain data at the Mesh.ARRAY_CUSTOM0 index if semantic_label_set was true in OpenXRAndroidSceneMeshing.initialize.
Array get_indexed_vertex_semantics ( ) const
An Array of SemanticLabels, which is identical to indexing the Array from get_indexed_arrays at Mesh.ARRAY_CUSTOM0.
NOTE: This Array is always empty when OpenXRAndroidSceneMeshing.initialize was called with OpenXRAndroidSceneMeshing.SEMANTIC_LABEL_SET_NONE.
int get_last_update_time ( ) const
Get the time when the submesh was last updated.
StringName get_submesh_id ( ) const
Get the UUID for this mesh.
This UUID can be used as a key for the Dictionary returned by OpenXRAndroidSceneMeshing.get_submesh_data.
Transform3D get_transform ( ) const
Get the global Transform3D of the center and orientation of the mesh.
UpdateState get_update_state ( ) const
Get the state of the mesh.
Array get_vertex_semantics ( ) const
An Array of SemanticLabels, which is identical to indexing the Array from get_arrays at Mesh.ARRAY_CUSTOM0.
NOTE: This Array is always empty when OpenXRAndroidSceneMeshing.initialize was called with OpenXRAndroidSceneMeshing.SEMANTIC_LABEL_SET_NONE.