public Surface(Surface s) { Lc1 = new PolyLine(s.Lc1.Lst); Lc2 = new PolyLine(s.Lc2.Lst); pc1 = new List <Point3D>(s.pc1); pc2 = new List <Point3D>(s.pc2); }
public PolyLine Isometric(float angleX, float angleY, float angleZ) { PolyLine temp = new PolyLine(this); temp = temp.AngleX(angleX); temp = temp.AngleY(angleY); temp = temp.AngleZ(angleZ); return(temp); }
public PolyLine MoveOnVector(float x, float y, float z) { PolyLine temp = new PolyLine(this); for (int i = 0; i < temp.Lst.Count; i++) { temp.Lst[i] = MatrixManager.MoveOnVector(temp.Lst[i], x, y, z); } return(temp); }
public PolyLine AngleZ(float angle) { PolyLine temp = new PolyLine(this); for (int i = 0; i < temp.Lst.Count; i++) { temp.Lst[i] = MatrixManager.OnAngleZ(temp.Lst[i], angle); } return(temp); }
public override string ToString() { string res = string.Empty; foreach (var item in Lst) { res += item.ToString() + '\n'; } return(res); }
public void Draw(Graphics g, Pen pen, Point3D vector = null) { PolyLine temp = new PolyLine(this); if (vector != null) { temp = temp.MoveOnVector(vector.X, vector.Y, vector.Z); } for (int i = 0; i < Lst.Count - 1; i++) { g.DrawLine(pen, (PointF)temp.Lst[i], (PointF)temp.Lst[i + 1]); } }
public Surface(PolyLine p1, PolyLine p2, int d) { Lc1 = new PolyLine(p1.Lst); Lc2 = new PolyLine(p2.Lst); Connect(d); }
public PolyLine(PolyLine poly) { Lst = new List <Point3D>(poly.Lst); }