public bool FlipChanelOnLine(ColorChanel chan, MeshPoint other) { float val = 1; if (Cfg.MakeVericesUniqueOnEdgeColoring) { EditedMesh.GiveLineUniqueVerticles_RefreshTrisListing(new LineData(this, other)); } foreach (Vertex u in uvpoints) { if (u.ConnectedTo(other)) { val *= u._color.GetChanel(chan) * u.GetConnectedUVinVert(other)._color.GetChanel(chan); } } val = (val > 0.9f) ? 0 : 1; SetChanel(chan, other, val); other.SetChanel(chan, this, val); EditedMesh.Dirty = true; return(val == 1); }