Пример #1
0
    public void DestroyVertex(HairyPlotterVertex vertex)
    {
        if (vertex != null)
        {
            if (uvEditVertex == vertex)
            {
                uvEditVertex = null;
            }

            // Mark dirty
            Dirty = true;

            // Remove from vertices and selection
            vertices.Remove(vertex);
            verticeSelection.Remove(vertex);

            for (int i = 0; i < vertex.TriangleCount; ++i)
            {
                DestroyTriangle(vertex.GetTriangle(i));
            }

            // Update
            UpdateVertexIndexes();
        }
    }
Пример #2
0
    public void DestroyVertex(HairyPlotterVertex vertex)
    {
        if (vertex != null)
        {
            if (uvEditVertex == vertex)
                uvEditVertex = null;

            // Mark dirty
            Dirty = true;

            // Remove from vertices and selection
            vertices.Remove(vertex);
            verticeSelection.Remove(vertex);

            for (int i = 0; i < vertex.TriangleCount; ++i)
            {
                DestroyTriangle(vertex.GetTriangle(i));
            }

            // Update
            UpdateVertexIndexes();
        }
    }