MeshOperations<T>

Helpers & Utilities · AiDotNet.Geometry.Preprocessing

Provides mesh processing operations for triangle meshes.

Methods

Method Summary
List<int>[] BuildVertexAdjacency(TriangleMeshData<T> mesh) Builds a vertex adjacency list (which vertices are connected by edges).
MeshStatistics<T> ComputeStatistics(TriangleMeshData<T> mesh) Computes mesh statistics (surface area, volume, bounding box).
PointCloudData<T> SamplePoints(TriangleMeshData<T> mesh, int numSamples, int? seed, bool includeNormals) Samples points uniformly from the mesh surface.
Tensor<T> ComputeFaceNormals(TriangleMeshData<T> mesh) Computes face normals for a triangle mesh.
Tensor<T> ComputeVertexNormals(TriangleMeshData<T> mesh) Computes vertex normals by averaging adjacent face normals.