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(); } }
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(); } }