ARMeshAnchor¶
Inherits: RefCounted < Object
A scene-reconstruction mesh anchored in world space.
Description¶
Represents a chunk of reconstructed scene geometry. Mesh anchors expose vertices, normals, triangle indices, and optional per-face classifications such as wall, floor, or table. These anchors are useful for occlusion, physics, spatial understanding, and procedural mesh generation.
Properties¶
PackedInt32Array |
|
|
PackedVector3Array |
|
|
PackedVector3Array |
|
|
String |
|
|
Transform3D |
|
|
PackedInt32Array |
|
Methods¶
int |
get_face_classification(faceIndex: int) |
Vector3 |
get_normal(index: int) |
Vector3 |
get_vertex(index: int) |
Enumerations¶
enum MeshClassification: 🔗
MeshClassification NONE = 0
No semantic classification is available for this face.
MeshClassification WALL = 1
The mesh face is classified as a wall.
MeshClassification FLOOR = 2
The mesh face is classified as a floor.
MeshClassification CEILING = 3
The mesh face is classified as a ceiling.
MeshClassification TABLE = 4
The mesh face is classified as a table-like surface.
MeshClassification SEAT = 5
The mesh face is classified as a seat.
MeshClassification WINDOW = 6
The mesh face is classified as a window.
MeshClassification DOOR = 7
The mesh face is classified as a door.
Property Descriptions¶
PackedInt32Array classification_per_face = PackedInt32Array() 🔗
void set_classification_per_face(value: PackedInt32Array)
PackedInt32Array get_classification_per_face()
Semantic classification value for each mesh face.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.
PackedVector3Array geometry_normals = PackedVector3Array() 🔗
void set_geometry_normals(value: PackedVector3Array)
PackedVector3Array get_geometry_normals()
Normal vectors for the mesh vertices.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedVector3Array for more details.
PackedVector3Array geometry_vertices = PackedVector3Array() 🔗
void set_geometry_vertices(value: PackedVector3Array)
PackedVector3Array get_geometry_vertices()
Mesh vertices in anchor-local space.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedVector3Array for more details.
String identifier = "" 🔗
void set_identifier(value: String)
String get_identifier()
A unique identifier for this mesh anchor.
Transform3D transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) 🔗
void set_transform(value: Transform3D)
Transform3D get_transform()
The mesh anchor transform in world space.
PackedInt32Array triangle_indices = PackedInt32Array() 🔗
void set_triangle_indices(value: PackedInt32Array)
PackedInt32Array get_triangle_indices()
Triangle index data for the reconstructed mesh.
Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.
Method Descriptions¶
int get_face_classification(faceIndex: int) 🔗
Returns the semantic classification for the triangle face at faceIndex.
Vector3 get_normal(index: int) 🔗
Returns the surface normal at vertex index.
Vector3 get_vertex(index: int) 🔗
Returns the mesh vertex at index.