Beispiel #1
0
    /// <summary> Updates the Vertex Density on every element of a path list.</summary>
    /// <param name="list"></param>
    /// <param name="density">Absolute density or additive factor, per path</param>
    public static void UpdateDensity(this List <RageGroupElement> list, int density)
    {
        if (list == null)
        {
            return;
        }
        foreach (RageGroupElement rageGroupItem in list)
        {
            ISpline path = rageGroupItem.Spline;
            if (!path.IsVisible())
            {
                continue;
            }
            if (path.VertexDensity == density)
            {
                continue;
            }

            path.VertexDensity = density;
        }
    }