Skip to content

ContourSide

StructTextStudio.ThreeDTextStudio.3D
public readonly struct ContourSide

One directed edge as observed at a vertex. The incoming interval ends at that vertex; the outgoing interval starts there. SourceInterval parameters are attributable estimates, not a claim of an exact analytic Boolean intersection.

ContourSide(Vector2, int, float, float, ContourProvenanceKind, ContourTangentKind)

Section titled “ContourSide(Vector2, int, float, float, ContourProvenanceKind, ContourTangentKind)”
public ContourSide(Vector2 tangent, int sourceSegmentIndex, float parameterStart, float parameterEnd, ContourProvenanceKind provenance, ContourTangentKind tangentKind)

Creates a directed contour side with a normalized tangent and optional source curve attribution.

Parameters

Name Type
tangent UnityEngine.Vector2
sourceSegmentIndex System.Int32
parameterStart System.Single
parameterEnd System.Single
provenance TextStudio.ThreeD.ContourProvenanceKind
tangentKind TextStudio.ThreeD.ContourTangentKind

public static ContourSide Geometric(Vector2 directedEdge, bool ambiguous = false)

Creates a side from a geometric edge when no exact source curve interval can be claimed.

Parameters

Name Type
directedEdge UnityEngine.Vector2
ambiguous System.Boolean

Returns

TextStudio.ThreeD.ContourSide

public ContourSide ReverseTraversal()

Returns the same edge attribution traversed in the opposite direction.

Returns

TextStudio.ThreeD.ContourSide

TransformLinear(float, float, float, float)

Section titled “TransformLinear(float, float, float, float)”
public ContourSide TransformLinear(float xx, float xy, float yx, float yy)

Applies a 2D linear transform to the tangent while retaining its source attribution.

Parameters

Name Type
xx System.Single
xy System.Single
yx System.Single
yy System.Single

Returns

TextStudio.ThreeD.ContourSide

public Vector2 Tangent { get; }

Returns

UnityEngine.Vector2

public int SourceSegmentIndex { get; }

Returns

System.Int32

public float ParameterStart { get; }

Returns

System.Single

public float ParameterEnd { get; }

Returns

System.Single

public ContourProvenanceKind Provenance { get; }

Returns

TextStudio.ThreeD.ContourProvenanceKind

public ContourTangentKind TangentKind { get; }

Returns

TextStudio.ThreeD.ContourTangentKind

public bool HasSource { get; }

Returns

System.Boolean