Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

VectorUtils.TessellatePath

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void TessellatePath(Unity.VectorGraphics.BezierContour contour, Unity.VectorGraphics.PathProperties pathProps, Unity.VectorGraphics.VectorUtils.TessellationOptions tessellateOptions, out Vector2[] vertices, out ushort[] indices);

Parameters

Parameter Description
contour The path to tessellate
pathProps The path properties
tessellateOptions The tessellation options
vertices The resulting vertices
indices The resulting triangles

Description

Tessellates a path.

The individual line segments generated during tessellation are made out of a set of ordered vertices. It is important to honor this ordering so joining and and capping connect properly with the existing vertices without generating dupes. The ordering assumed is as follows: The last two vertices of a piece must be such that the first is generated at the end with a positive half-thickness while the second vertex is at the end too but at a negative half-thickness. No assumptions are enforced for other vertices before the two last vertices.