Skip to content

SurfaceMapping3DSet

StructTextStudio.ThreeDTextStudio.3D
public struct SurfaceMapping3DSet

Default texture mapping plus optional semantic-surface overrides. Surface boundaries use the same region metadata as materials, exports, LODs, and generated masks.

[Tooltip("Texture mapping used by every surface without an explicit override.")]
public SurfaceMapping3DSpec defaultMapping

Returns

TextStudio.ThreeD.SurfaceMapping3DSpec

[Tooltip("Optional mappings for Front, Relief, Bevels, Sides, Back, Trim, and Decorations.")]
public SurfaceMapping3DOverride[] overrides

Returns

TextStudio.ThreeD.SurfaceMapping3DOverride[]

public SurfaceMapping3DSpec Resolve(MaterialRegion region)

Resolves the first per-region mapping override or falls back to the set’s default mapping.

Parameters

Name Type
region TextStudio.ThreeD.MaterialRegion

Returns

TextStudio.ThreeD.SurfaceMapping3DSpec

public static SurfaceMapping3DSet Default { get; }

Returns

TextStudio.ThreeD.SurfaceMapping3DSet