API Reference · Geometry

SurfaceNetsBudgetException

Namespace: Ava3D

public sealed class SurfaceNetsBudgetException : InvalidOperationException

Thrown by SurfaceNets.Extract when the surface would have more triangles than SurfaceNetsOptions.MaxTriangles allows. Nothing has been allocated for the mesh at that point; the count comes from a pass over the samples, so the exception says exactly how many were needed.

Constructors

MemberDescription
SurfaceNetsBudgetException(long triangleCount, int maxTriangles)

Creates the exception for a surface of triangleCount triangles against a budget of maxTriangles.

Properties

MemberDescription
int MaxTriangles { get; }

The budget that was exceeded.

long TriangleCount { get; }

How many triangles the field would have produced at this resolution.

See also