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

NameType
tangentUnityEngine.Vector2
sourceSegmentIndexSystem.Int32
parameterStartSystem.Single
parameterEndSystem.Single
provenanceTextStudio.ThreeD.ContourProvenanceKind
tangentKindTextStudio.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

NameType
directedEdgeUnityEngine.Vector2
ambiguousSystem.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

NameType
xxSystem.Single
xySystem.Single
yxSystem.Single
yySystem.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