Mesh3D<T>

Models & Types · AiDotNet.Interfaces

Represents a 3D mesh with vertices, faces, and optional textures.

Constructors

Constructor Summary
Mesh3D() Initializes a new empty mesh.
Mesh3D(Tensor<T> vertices, int[] faces) Initializes a mesh with vertices and faces.

Properties

Property Summary
Tensor<T> Colors { get; set; } Gets or sets the vertex colors [numVertices, 3] (optional).
Tensor<T> Normals { get; set; } Gets or sets the vertex normals [numVertices, 3] (optional).
Tensor<T> TextureImage { get; set; } Gets or sets the texture image [height, width, channels] (optional).
Tensor<T> UVCoordinates { get; set; } Gets or sets the UV texture coordinates [numVertices, 2] (optional).
Tensor<T> Vertices { get; set; } Gets or sets the vertex positions [numVertices, 3].
int[] Faces { get; set; } Gets or sets the face indices [numFaces, 3] for triangular faces.