예제 #1
0
        public curve3_ctrl_impl()
            : base(new Vector2())
        {
            m_stroke  = new Stroke(m_curve);
            m_poly    = new polygon_ctrl_impl(3, 5.0);
            m_idx     = 0;
            m_curve   = new Curve3();
            m_ellipse = new MatterHackers.Agg.VertexSource.Ellipse();

            m_poly.in_polygon_check(false);
            m_poly.SetXN(0, 100.0);
            m_poly.SetYN(0, 0.0);
            m_poly.SetXN(1, 100.0);
            m_poly.SetYN(1, 50.0);
            m_poly.SetXN(2, 50.0);
            m_poly.SetYN(2, 100.0);
        }
예제 #2
0
		public bezier_ctrl_impl()
			: base(new Vector2(0, 0))
		{
			m_stroke = new Stroke(m_curve);
			m_poly = new polygon_ctrl_impl(4, 5.0);
			m_idx = (0);
			m_ellipse = new MatterHackers.Agg.VertexSource.Ellipse();

			m_poly.in_polygon_check(false);
			m_poly.SetXN(0, 100.0);
			m_poly.SetYN(0, 0.0);
			m_poly.SetXN(1, 100.0);
			m_poly.SetYN(1, 50.0);
			m_poly.SetXN(2, 50.0);
			m_poly.SetYN(2, 100.0);
			m_poly.SetXN(3, 0.0);
			m_poly.SetYN(3, 100.0);
		}