Skip to content

TextStudio3DContourAsset

ClassTextStudio.ThreeDTextStudio.3D
[CreateAssetMenu(fileName = "New 3D Contour", menuName = "Text Studio/3D/Geometry/Contours/Contour Asset", order = 107)]
public sealed class TextStudio3DContourAsset : TextStudio3DContourSourceAsset

Reusable serialized 2D contour data for logos, symbols, and program operands.

public override TextStudio3DContourValidationReport Validate()

Validates the source’s current contour data without modifying the asset.

Returns

TextStudio.ThreeD.TextStudio3DContourValidationReport

public override ContourState CreateContour()

Creates a detached contour snapshot that the caller may safely transform or combine.

Returns

TextStudio.ThreeD.ContourState

TrySetContour(ContourState, out TextStudio3DContourValidationReport)

Section titled “TrySetContour(ContourState, out TextStudio3DContourValidationReport)”
public bool TrySetContour(ContourState contour, out TextStudio3DContourValidationReport report)

Validates and stores a detached contour snapshot only when its loops, winding, intersections, and containment are valid.

Parameters

Name Type
contour TextStudio.ThreeD.ContourState
report TextStudio.ThreeD.TextStudio3DContourValidationReport

Returns

System.Boolean: True when the asset accepted the supplied contour.

public TextStudio3DContourAsset()