//create a path with an already started temp path public IPath CreatePath(IPathHost host, ITempPath temppath, ISolid end) { var p = new LinkPath(host, temppath, end); if (p.Start.IsConnectable) { p.Start.Connectable.ConnectTo(p.End.Connectable, host); } if (p.End.IsConnectable) { p.End.Connectable.ConnectTo(p.Start.Connectable, host); } LinkRoot.Add(p); return(p); }
public LinkPath(IGraphElementHost host, ITempPath temppath, ISolid end) : base(host, temppath.Start) { Points = temppath.Points; PathConstruction(end); }