Skip to content

Contour3DSpec

StructTextStudio.ThreeDTextStudio.3D
public struct Contour3DSpec

Contour selection, expansion, and outline-ring authoring for one layer.

[Tooltip("Optional reusable source and ordered boolean program applied before expansion and outline rings.")]
public TextStudio3DContourProgram program

Returns

TextStudio.ThreeD.TextStudio3DContourProgram

[Tooltip("Semantic group that receives the contour when its selection matches.")]
public LayerScope3DMode scope

Returns

TextStudio.ThreeD.LayerScope3DMode

[Tooltip("Visible glyphs whose contours participate in this layer.")]
public LayerSelection3DSpec selection

Returns

TextStudio.ThreeD.LayerSelection3DSpec

[Tooltip("Signed contour expansion in local units. Positive grows the silhouette; negative shrinks it.")]
[Range(-0.25, 0.25)]
public float expand

Returns

System.Single

[Tooltip("Corner style used when expanding the source contour.")]
public BevelJoinType expandJoin

Returns

TextStudio.ThreeD.BevelJoinType

[Tooltip("Maximum corner extension for a mitered contour expansion.")]
[Min(1)]
public float expandMiterLimit

Returns

System.Single

[Tooltip("Ordered true-outline rings emitted from the selected contour.")]
public StrokeSpec[] strokes

Returns

TextStudio.ThreeD.StrokeSpec[]

[Tooltip("How this layer's outline rings relate to the preceding authored layer.")]
public StrokeInheritMode strokeInheritance

Returns

TextStudio.ThreeD.StrokeInheritMode

ConnectedOutline(float, LayerScope3DMode, BevelJoinType, float)

Section titled “ConnectedOutline(float, LayerScope3DMode, BevelJoinType, float)”
public static Contour3DSpec ConnectedOutline(float bridgeRadius, LayerScope3DMode scope = LayerScope3DMode.Word, BevelJoinType join = BevelJoinType.Round, float miterLimit = 4)

Create a grouped expanded silhouette for a connected outline layer behind ordinary text. Neighboring glyph gaps smaller than twice bridgeRadius merge into one contour without requiring a manually authored word mesh.

Parameters

Name Type
bridgeRadius System.Single
scope TextStudio.ThreeD.LayerScope3DMode
join TextStudio.ThreeD.BevelJoinType
miterLimit System.Single

Returns

TextStudio.ThreeD.Contour3DSpec

public static Contour3DSpec Default { get; }

Returns

TextStudio.ThreeD.Contour3DSpec