private bool CheckVisibility(BidirectionalEdge<ISatellite> edge)
{
var vessel = PlanetariumCamera.fetch.target.vessel;
var satellite = RTCore.Instance.Satellites[vessel];
if (satellite != null && ShowPath)
{
var connections = RTCore.Instance.Network[satellite];
if (connections.Any() && connections[0].Contains(edge))
return true;
}
if (edge.Type == LinkType.Omni && !ShowOmni)
return false;
if (edge.Type == LinkType.Dish && !ShowDish)
return false;
if (!edge.A.Visible || !edge.B.Visible)
return false;
return true;
}