Table of Contents

Method GenerateWorldVerticesAndAlphas

Namespace
Pinwheel.Griffin.SplineTool
Assembly
Pinwheel.Polaris.Runtime.dll

GenerateWorldVerticesAndAlphas(Vector3[], float[], int, float, float)

Generate the spline mesh containing only vertices (triangle list, 3 consecutive vertices for 1 triangle) and alpha channel for each vertices. Acquire the exact vertex count for pre-allocated array with GetVerticesCount(int, float, float).

public void GenerateWorldVerticesAndAlphas(Vector3[] vertices, float[] alphas, int curviness, float width, float falloffWidth)

Parameters

vertices Vector3[]

Pre-allocated array storing all vertices.

alphas float[]

Pre-allocated array storing all alpha values.

curviness int

Number of 'quads' for each spline segment. Higher value means more accurate spline shape.

width float

Width of the inner part of the spline, this region has alpha of 1.

falloffWidth float

Width of the outter part of the spline, this region has alpha fades from 1 to 0.