Skip to content

BevelSpec

StructTextStudio.ThreeDTextStudio.3D
public struct BevelSpec

One end of a layer’s bevel (either front or back cap). Decomposes the old monolithic bevelRadius into the four inputs that authoring tools like Blender and Cinema 4D expose separately, and adds a join style / miter limit for polygon corners so sharp letterforms remain crisp.

[Tooltip("Radial offset applied in the contour's XY plane. In local units. The bevel pulls the cap ring inward by this much from the body silhouette. Equivalent to Three.js' bevelSize or Blender's Bevel Depth (horizontal).")]
[Range(0, 0.2)]
public float size

Returns

System.Single

[Tooltip("Extent along the extrusion axis (Z). The bevel displaces vertices by this much along the cap direction. Equivalent to Three.js' bevelThickness. When set equal to 'size' the bevel is a 45° chamfer; when smaller it is a flatter slope; when larger it is a steeper one.")]
[Range(0, 0.2)]
public float thickness

Returns

System.Single

[Tooltip("Uniform radial offset applied to the body silhouette BEFORE the bevel is swept. Positive values inset the whole cap plane inward (useful for double bevels / trim steps). Equivalent to Three.js' bevelOffset.")]
[Range(-0.1, 0.1)]
public float offset

Returns

System.Single

[Tooltip("Segment count along the bevel cross-section. More segments = smoother bevel, more triangles. Profile samples override this when > 1 (see profile).")]
[Range(0, 32)]
public int segments

Returns

System.Int32

[Tooltip("2D cross-section swept along the contour. When null, a rounded profile with the requested segment count is used.")]
public BevelProfile profile

Returns

TextStudio.ThreeD.BevelProfile

[Tooltip("Join style applied to polygon corners. Miter is sharp; Round inserts an arc fan (most visible on chunky bevels); Bevel inserts a single chamfer edge.")]
public BevelJoinType join

Returns

TextStudio.ThreeD.BevelJoinType

[Tooltip("Miter clamp for Miter joins. Large values let sharp corners spike; small values fall back to a bevel join at extreme angles. Typical values are 2..8.")]
[Min(1)]
public float miterLimit

Returns

System.Single

public static BevelSpec Round(float size, float thickness, int segments = 6)

Creates an enabled rounded bevel with independent inset size, depth thickness, and bounded segment count.

Parameters

Name Type
size System.Single
thickness System.Single
segments System.Int32

Returns

TextStudio.ThreeD.BevelSpec

public static BevelSpec Chamfer(float size, float thickness)

Creates an enabled single-segment linear chamfer with independent inset size and depth thickness.

Parameters

Name Type
size System.Single
thickness System.Single

Returns

TextStudio.ThreeD.BevelSpec

public bool HasGeometry { get; }

Returns

System.Boolean

public static BevelSpec None { get; }

Returns

TextStudio.ThreeD.BevelSpec