Contour3DSpec
public struct Contour3DSpecContour selection, expansion, and outline-ring authoring for one layer.
Fields
Section titled “Fields”
program
Section titled “program”[Tooltip("Optional reusable source and ordered boolean program applied before expansion and outline rings.")]public TextStudio3DContourProgram programReturns
TextStudio.ThreeD.TextStudio3DContourProgram
[Tooltip("Semantic group that receives the contour when its selection matches.")]public LayerScope3DMode scopeReturns
TextStudio.ThreeD.LayerScope3DMode
selection
Section titled “selection”[Tooltip("Visible glyphs whose contours participate in this layer.")]public LayerSelection3DSpec selectionReturns
TextStudio.ThreeD.LayerSelection3DSpec
expand
Section titled “expand”[Tooltip("Signed contour expansion in local units. Positive grows the silhouette; negative shrinks it.")][Range(-0.25, 0.25)]public float expandReturns
System.Single
expandJoin
Section titled “expandJoin”[Tooltip("Corner style used when expanding the source contour.")]public BevelJoinType expandJoinReturns
TextStudio.ThreeD.BevelJoinType
expandMiterLimit
Section titled “expandMiterLimit”[Tooltip("Maximum corner extension for a mitered contour expansion.")][Min(1)]public float expandMiterLimitReturns
System.Single
strokes
Section titled “strokes”[Tooltip("Ordered true-outline rings emitted from the selected contour.")]public StrokeSpec[] strokesReturns
TextStudio.ThreeD.StrokeSpec[]
strokeInheritance
Section titled “strokeInheritance”[Tooltip("How this layer's outline rings relate to the preceding authored layer.")]public StrokeInheritMode strokeInheritanceReturns
TextStudio.ThreeD.StrokeInheritMode
Methods
Section titled “Methods”
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
Properties
Section titled “Properties”
Default
Section titled “Default”public static Contour3DSpec Default { get; }Returns
TextStudio.ThreeD.Contour3DSpec