public ISegmentInstance AddSegment(Segment segment) { var instance = new SegmentInstance(this); lock (m_instances) { m_instances.Add(instance); } instance.P1 = new Vector3(segment.P1.X, segment.P1.Y, 0); instance.P2 = new Vector3(segment.P2.X, segment.P2.Y, 0); instance.Color = segment.Color; return instance; }
public ISegmentInstance AddSegment(Segment segment) { var instance = new SegmentInstance(this); lock (m_instances) { m_instances.Add(instance); } instance.P1 = new Vector3(segment.P1.X, segment.P1.Y, 0); instance.P2 = new Vector3(segment.P2.X, segment.P2.Y, 0); instance.Color = segment.Color; return(instance); }
public void Reset() { Panel.Hide(); SetMode(ToolType.SelectInstance); SegmentInstance.Empty(); }