TextStudio3DGeometryValidator
public sealed class TextStudio3DGeometryValidatorReusable, allocation-stable validator for generated glyph mesh buffers. One validator instance owns its scratch storage and can be reused across glyphs and rebuilds.
Methods
Section titled “Methods”
Validate(in GlyphMeshData, bool, float)
Section titled “Validate(in GlyphMeshData, bool, float)”public TextStudio3DGeometryValidationReport Validate(in GlyphMeshData mesh, bool allowOpenBoundaries = false, float positionTolerance = 1E-05)Validates finite mesh channels, index and region coverage, normals, tangents, degeneracy, manifold edges, and unused vertices.
Parameters
| Name | Type | Description |
|---|---|---|
mesh |
TextStudio.ThreeD.GlyphMeshData | |
allowOpenBoundaries |
System.Boolean | Whether open cap boundaries are expected and excluded from invalid-open-edge counts. |
positionTolerance |
System.Single | Distance used to merge edge endpoints for topology checks. |
Returns
TextStudio.ThreeD.TextStudio3DGeometryValidationReport
ValidateTangents(Vector4[], Vector3[], int, ref TextStudio3DGeometryValidationReport)
Section titled “ValidateTangents(Vector4[], Vector3[], int, ref TextStudio3DGeometryValidationReport)”public void ValidateTangents(Vector4[] tangents, Vector3[] normals, int vertexCount, ref TextStudio3DGeometryValidationReport report)Adds assembled tangent-channel validation to an existing glyph-buffer report. Tangents are generated during mesh assembly, so they are validated separately from TextStudio.ThreeD.GlyphMeshData while contributing to the same result.
Parameters
| Name | Type |
|---|---|
tangents |
UnityEngine.Vector4[] |
normals |
UnityEngine.Vector3[] |
vertexCount |
System.Int32 |
report |
TextStudio.ThreeD.TextStudio3DGeometryValidationReport |
Constructors
Section titled “Constructors”
TextStudio3DGeometryValidator()
Section titled “TextStudio3DGeometryValidator()”public TextStudio3DGeometryValidator()