public void AddRiver(List <DisplayNode> riverNodes) { DisplayPoly poly = new DisplayPoly(riverNodes); poly.boundingBox = BoundingBoxUtil.BoundingBox(riverNodes); poly.color = Color.blue; poly.type = PolyType.River; displayPolys.Add(poly); }
public void AddArea(Color color, List <DisplayNode> areaBounds) { DisplayPoly poly = new DisplayPoly(areaBounds); poly.boundingBox = BoundingBoxUtil.BoundingBox(areaBounds); poly.color = color; poly.type = PolyType.Area; displayPolys.Add(poly); }