/// <summary> /// Constructs a polyhedron with the provided faces. /// </summary> /// <param name="faces">Array of faces (polygon)</param> public Polyhedron(Polygon[] faces) { _faces = new List<Polygon>(faces); _trajectory = Center; _trajectory.x += 1; _roll = Center; _roll.y += 1; }
/// <summary> /// Constructs a polhedron with the provided faces at the given location. /// </summary> /// <param name="faces">Array of faces (polygon)</param> /// <param name="location">Location (point)</param> public Polyhedron(Polygon[] faces, Point location) { _faces = new List<Polygon>(faces); Offset(new Vector(Center, location)); }