public Sphere(double x, double y, double z) { o = new Objects(6, new Point(x, y, z)); Point p1 = new Point(0.0, 0.0, 0.0); Point p2 = new Point(o.Length / 2, o.Height / 4, 0.0); Point p3 = new Point(o.Length, o.Height / 2, 0.0); Point p4 = new Point(o.Length / 2, o.Height / 1.5, 0.0); Point p5 = new Point(0.0, o.Height, 0.0); Point p6 = new Point(-(o.Length / 2), o.Height / 1.5, 0.0); Point p7 = new Point(-(o.Length), o.Height / 2, 0.0); Point p8 = new Point(-(o.Length / 2), o.Height / 4, 0.0); Point p9 = new Point(0.0, 0.0, o.Depth); Point p10 = new Point(o.Length / 2, o.Height / 4, o.Depth); Point p11 = new Point(o.Length, o.Height / 2, o.Depth); Point p12 = new Point(o.Length / 2, o.Height / 1.5, o.Depth); Point p13 = new Point(0.0, o.Height, o.Depth); Point p14 = new Point(-(o.Length / 2), o.Height / 1.5, o.Depth); Point p15 = new Point(-(o.Length), o.Height / 2, o.Depth); Point p16 = new Point(-(o.Length / 2), o.Height / 4, o.Depth); Line l1 = new Line(p1, p2, p3); Line l2 = new Line(p3, p4, p5); Line l3 = new Line(p5, p6, p7); Line l4 = new Line(p7, p8, p1); Line l5 = new Line(p9, p10, p11); Line l6 = new Line(p11, p12, p13); Line l7 = new Line(p13, p14, p15); Line l8 = new Line(p15, p16, p9); Point top = new Point(o.Length / 2, o.Height, o.Depth / 2); Point bottom = new Point(o.Length / 2, 0.0, o.Depth / 2); Point left = new Point(0.0, o.Height / 2, o.Depth / 2); Point right = new Point(o.Length, o.Height / 2, o.Depth / 2); Point front = new Point(o.Length / 2, o.Height / 2, 0.0); Point back = new Point(o.Length / 2, o.Height / 2, o.Depth / 2); sphere = new Bracket(l1, l2, l3, l4, l5, l6, l7, l8); sphere.AddRef(Direction.Sides.Top, top); sphere.AddRef(Direction.Sides.Bottom, bottom); sphere.AddRef(Direction.Sides.Left, left); sphere.AddRef(Direction.Sides.Right, right); sphere.AddRef(Direction.Sides.Front, front); sphere.AddRef(Direction.Sides.Back, back); }
public Pyrimad(double x, double y, double z) { o = new Objects(3, new Point(x, y, z)); Point p1 = new Point(0.0, 0.0, 0.0); Point p2 = new Point(o.Length, 0.0, 0.0); Point p3 = new Point(0.0, 0.0, o.Depth); Point p4 = new Point(o.Length, 0.0, o.Depth); Point p5 = new Point(o.Length / 2, o.Height, o.Depth / 2); Line l1 = new Line(p1, p2); Line l2 = new Line(p2, p5); Line l3 = new Line(p5, p1); Line l4 = new Line(p3, p4); Line l5 = new Line(p4, p5); Line l6 = new Line(p5, p3); Line l7 = new Line(p1, p3); Line l8 = new Line(p2, p4); Point left = new Point(0.0, o.Height / 2, o.Depth / 1.5); Point right = new Point(o.Length, o.Height / 2, o.Depth / 1.5); Point top = p5; Point bottom = new Point(o.Length / 2, 0.0, o.Depth / 2); Point front = new Point(o.Length / 2, o.Height / 2, 0.0); Point back = new Point(o.Length / 2, o.Height / 2, o.Depth / 1.5); pyrimad = new Bracket(left, right, bottom, front, back, l1, l2, l3, l4, l5, l6, l7, l8); Point botleftfront = p1; Point botleftback = p3; Point botrightfront = p2; Point botrightback = p4; Point topmid = p5; pyrimad.AddRef(Direction.Sides.Left, left); pyrimad.AddRef(Direction.Sides.Right, right); pyrimad.AddRef(Direction.Sides.Top, top); pyrimad.AddRef(Direction.Sides.Bottom, bottom); pyrimad.AddRef(Direction.Sides.Front, front); pyrimad.AddRef(Direction.Sides.Back, back); pyrimad.AddRef(Direction.Corners.BotLeftX, botleftfront); pyrimad.AddRef(Direction.Corners.BotLeftY, botleftback); pyrimad.AddRef(Direction.Corners.BotRightX, botrightfront); pyrimad.AddRef(Direction.Corners.BotRightY, botrightback); pyrimad.AddRef(Direction.Corners.TopMiddle, topmid); }
public Cone(double x, double y, double z) { o = new Objects(4, new Point(x, y, z)); Point p1 = new Point(0.0, 0.0, 0.0); Point p2 = new Point(o.Length / 2, 0.0, o.Depth / 4); Point p3 = new Point(o.Length, 0.0, o.Depth / 2); Point p4 = new Point(o.Length / 2, 0.0, o.Depth / 1.5); Point p5 = new Point(0.0, 0.0, o.Depth); Point p6 = new Point(-(o.Length / 2), 0.0, o.Depth / 1.5); Point p7 = new Point(-(o.Length), 0.0, o.Depth / 2); Point p8 = new Point(-(o.Length / 2), 0.0, o.Depth / 4); Point p9 = new Point(0.0, o.Height, o.Depth / 2); Line l1 = new Line(p1, p2, p3); Line l2 = new Line(p3, p4, p5); Line l3 = new Line(p5, p6, p7); Line l4 = new Line(p7, p8, p1); Line l5 = new Line(p1, p9); Line l6 = new Line(p2, p9); Line l7 = new Line(p3, p9); Line l8 = new Line(p4, p9); Line l9 = new Line(p5, p9); Line l10 = new Line(p6, p9); Line l11 = new Line(p7, p9); Line l12 = new Line(p8, p9); Point top = p9; Point bottom = new Point(0.0, o.Length / 2, o.Depth / 2); cone = new Bracket(bottom, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12); Point botleftfront = p2; Point botleftback = p4; Point botrightfront = p6; Point botrightback = p8; cone.AddRef(Direction.Sides.Top, top); cone.AddRef(Direction.Sides.Bottom, bottom); cone.AddRef(Direction.Corners.BotLeftX, botleftfront); cone.AddRef(Direction.Corners.BotLeftY, botleftback); cone.AddRef(Direction.Corners.BotRightX, botrightfront); cone.AddRef(Direction.Corners.BotRightY, botrightback); }
public Cube(double x, double y, double z) { o = new Objects(1, new Point(x, y, z)); Point p1 = new Point(0.0, 0.0, 0.0); Point p2 = new Point(o.Length, 0.0, 0.0); Point p3 = new Point(o.Length, o.Height, 0.0); Point p4 = new Point(0.0, o.Height, 0.0); Point p5 = new Point(0.0, 0.0, o.Depth); Point p6 = new Point(o.Length, 0.0, o.Depth); Point p7 = new Point(o.Length, o.Height, o.Depth); Point p8 = new Point(0.0, o.Height, o.Depth); Line l1 = new Line(p1, p2); Line l2 = new Line(p2, p3); Line l3 = new Line(p3, p4); Line l4 = new Line(p4, p1); Line l5 = new Line(p1, p5); Line l6 = new Line(p2, p6); Line l7 = new Line(p3, p7); Line l8 = new Line(p4, p8); Line l9 = new Line(p5, p6); Line l10 = new Line(p6, p7); Line l11 = new Line(p7, p8); Line l12 = new Line(p8, p6); Point left = new Point(0.0, o.Height / 2, o.Depth / 2); Point right = new Point(o.Length, o.Height / 2, o.Depth / 2); Point top = new Point(o.Length / 2, o.Height, o.Depth / 2); Point bottom = new Point(o.Length / 2, 0.0, o.Depth / 2); Point back = new Point(o.Length / 2, o.Height / 2, o.Depth / 2); Point front = new Point(o.Length / 2, o.Height / 2, 0.0); cube = new Bracket(left, right, top, bottom, back, front, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12); Point topleftfront = p4; Point topleftback = p8; Point toprightfront = p3; Point toprightback = p7; Point botleftfront = p1; Point botleftback = p5; Point botrightfront = p2; Point botrightback = p6; cube.AddRef(Direction.Sides.Left, left); cube.AddRef(Direction.Sides.Right, right); cube.AddRef(Direction.Sides.Top, top); cube.AddRef(Direction.Sides.Bottom, bottom); cube.AddRef(Direction.Sides.Front, front); cube.AddRef(Direction.Sides.Bottom, bottom); cube.AddRef(Direction.Corners.TopLeftX, topleftfront); cube.AddRef(Direction.Corners.TopLeftY, topleftback); cube.AddRef(Direction.Corners.TopRightX, toprightfront); cube.AddRef(Direction.Corners.TopRightY, toprightback); cube.AddRef(Direction.Corners.BotLeftX, botleftfront); cube.AddRef(Direction.Corners.BotLeftY, botleftback); cube.AddRef(Direction.Corners.BotRightX, botrightfront); cube.AddRef(Direction.Corners.BotRightY, botrightback); }