Skip to content

DepthShape

StructTextStudio.ThreeDTextStudio.3D
public struct DepthShape

Depth-axis shape modifiers applied to the body between bevels. These turn a straight extrusion into a tapered column, twisted shaft, or bulging pillar without changing the glyph silhouette at t=0 / t=1.

[Tooltip("Number of body sub-divisions between the front and back bevel rings. 0 or 1 emits a single strip (original behavior); higher values let taper, twist, and bulge modulate the body surface smoothly along Z.")]
[Range(0, 64)]
public int steps

Returns

System.Int32

[Tooltip("XY scale applied to the contour at the front-face end (z = -depth). One = full size. Less than one = contour shrinks toward the front. Used to build keystones, pyramids, art-deco stepped shapes, and bell-shape columns.")]
public Vector2 taperStart

Returns

UnityEngine.Vector2

[Tooltip("XY scale applied to the contour at the back-face end (z = 0). One = full size.")]
public Vector2 taperEnd

Returns

UnityEngine.Vector2

[Tooltip("Optional easing curve remapping t along the depth before the taper lerp. Leave empty for linear.")]
public AnimationCurve taperCurve

Returns

UnityEngine.AnimationCurve

[Tooltip("Total twist in degrees applied around the extrusion axis, distributed from front face (0°) to back face (twistDegrees°). Positive is CCW looking down +Z.")]
public float twistDegrees

Returns

System.Single

[Tooltip("Optional easing curve remapping t along the depth before the twist lerp. Leave empty for linear.")]
public AnimationCurve twistCurve

Returns

UnityEngine.AnimationCurve

[Tooltip("Radial bulge amount in local units. Positive pushes the silhouette outward along the vertex bisector per ring, for barrel / pillow shapes; negative pulls inward for concave waist forms. Combines with bulgeCurve to shape the silhouette.")]
[Range(-0.1, 0.1)]
public float bulge

Returns

System.Single

[Tooltip("Curve that modulates bulge along the depth axis (t=0 back face .. t=1 front face). A classic barrel uses Ease(0,0,1,0) with a peak of 1 at t=0.5.")]
public AnimationCurve bulgeCurve

Returns

UnityEngine.AnimationCurve

public bool HasAnyShaping { get; }

Returns

System.Boolean

public static DepthShape Identity { get; }

Returns

TextStudio.ThreeD.DepthShape