TextStudio3DStyleCompiler
public static class TextStudio3DStyleCompilerValidates authored 3D layers and resolves inheritance into deterministic runtime geometry and material snapshots.
Methods
Section titled “Methods”
Compile(TextStudio3DLayer[], float, float, bool, TextStudio3DMeshDetailPreset)
Section titled “Compile(TextStudio3DLayer[], float, float, bool, TextStudio3DMeshDetailPreset)”public static CompiledTextStudio3DStyle Compile(TextStudio3DLayer[] authoredLayers, float flattenTolerance, float autoSmoothAngle, bool useRobustTriangulation, TextStudio3DMeshDetailPreset meshDetailPreset = TextStudio3DMeshDetailPreset.Custom)Compiles authored layers into a sanitized immutable snapshot, recording recoverable adjustments and invalid active settings as issues.
Parameters
| Name | Type |
|---|---|
authoredLayers |
TextStudio.ThreeD.TextStudio3DLayer[] |
flattenTolerance |
System.Single |
autoSmoothAngle |
System.Single |
useRobustTriangulation |
System.Boolean |
meshDetailPreset |
TextStudio.ThreeD.TextStudio3DMeshDetailPreset |
Returns
TextStudio.ThreeD.CompiledTextStudio3DStyle
ComputeFingerprint(TextStudio3DLayer[], float, float, bool, TextStudio3DMeshDetailPreset)
Section titled “ComputeFingerprint(TextStudio3DLayer[], float, float, bool, TextStudio3DMeshDetailPreset)”public static TextStudio3DStyleFingerprint ComputeFingerprint(TextStudio3DLayer[] authoredLayers, float flattenTolerance, float autoSmoothAngle, bool useRobustTriangulation, TextStudio3DMeshDetailPreset meshDetailPreset = TextStudio3DMeshDetailPreset.Custom)Computes the deterministic resolved identity used by runtime authoring tools and geometry caches.
Parameters
| Name | Type |
|---|---|
authoredLayers |
TextStudio.ThreeD.TextStudio3DLayer[] |
flattenTolerance |
System.Single |
autoSmoothAngle |
System.Single |
useRobustTriangulation |
System.Boolean |
meshDetailPreset |
TextStudio.ThreeD.TextStudio3DMeshDetailPreset |
Returns
TextStudio.ThreeD.TextStudio3DStyleFingerprint
ClassifyChanges(CompiledTextStudio3DStyle, CompiledTextStudio3DStyle)
Section titled “ClassifyChanges(CompiledTextStudio3DStyle, CompiledTextStudio3DStyle)”public static TextStudio3DStyleDirtyFlags ClassifyChanges(CompiledTextStudio3DStyle previous, CompiledTextStudio3DStyle current)Classifies whether two compiled snapshots differ in materials, topology, both, or neither.
Parameters
| Name | Type |
|---|---|
previous |
TextStudio.ThreeD.CompiledTextStudio3DStyle |
current |
TextStudio.ThreeD.CompiledTextStudio3DStyle |
Returns
TextStudio.ThreeD.TextStudio3DStyleDirtyFlags