Skip to content

ContourLoop

StructTextStudio.ThreeDTextStudio.3D
public struct ContourLoop

A single closed contour loop (sequence of 2D points).

public Vector2[] points

Returns

UnityEngine.Vector2[]

public int pointCount

Returns

System.Int32

public bool isClosed

Returns

System.Boolean

public bool[] sharpCorners

Optional per-vertex flag marking sharp corners. A vertex is considered sharp when the turn angle between adjacent edges exceeds the threshold used by the outline provider (typically ~60° for TTF glyphs). Consumed by the bevel ring sweep to split normals and by the body to emit hard edges.

May be null — all downstream code must treat null as “no vertex is sharp”. When non-null, length equals TextStudio.ThreeD.ContourLoop.points.Length.

Returns

System.Boolean[]

public byte[] microChamferKinds

Optional transient topology markers for geometry-generated micro-chamfers. A value of 1 marks the segment start and 2 marks its end. Outline providers normally leave this null; the bevel generator uses it to preserve the tiny segment’s width across offset rings.

Returns

System.Byte[]