Esempio n. 1
0
        protected override Polyline2D vmethod_1(ns9.Class107 edge)
        {
            Point3D     location1        = edge.StartVertex.Point.Location;
            Point3D     location2        = edge.EndVertex.Point.Location;
            Polyline2D  polyline2D       = new Polyline2D(2);
            Interface26 pointParamMapper = this.PointParamMapper;

            polyline2D.Add(pointParamMapper.imethod_0(location1));
            polyline2D.Add(pointParamMapper.imethod_0(location2));
            return(polyline2D);
        }
Esempio n. 2
0
        protected override Polyline2D vmethod_1(ns9.Class107 edge)
        {
            Point3D    location1  = edge.StartVertex.Point.Location;
            Point3D    location2  = edge.EndVertex.Point.Location;
            Polyline2D polyline2D = new Polyline2D(2);

            if (location1 == location2 && this.double_2 != 0.0)
            {
                Point3D  point3D1 = new Point3D(this.class247_0.Position);
                double   length   = this.class247_0.MajorAxis.GetLength();
                Vector3D normal   = this.class247_0.Normal;
                normal.Normalize();
                Point3D point3D2 = point3D1 - normal * (length / System.Math.Tan(this.double_2));
                if ((point3D2 - location1).GetLength() < 0.0001 * length)
                {
                    double x1 = Vector3D.DotProduct(point3D2 - point3D1, normal) / System.Math.Cos(this.double_2);
                    if (this.class690_0.Value)
                    {
                        double x2 = -x1;
                        polyline2D.Add(new Point2D(x2, 2.0 * System.Math.PI));
                        polyline2D.Add(new Point2D(x2, 4.0 * System.Math.PI / 3.0));
                        polyline2D.Add(new Point2D(x2, 2.0 * System.Math.PI / 3.0));
                        polyline2D.Add(new Point2D(x2, 0.0));
                    }
                    else
                    {
                        polyline2D.Add(new Point2D(x1, 0.0));
                        polyline2D.Add(new Point2D(x1, 2.0 * System.Math.PI / 3.0));
                        polyline2D.Add(new Point2D(x1, 4.0 * System.Math.PI / 3.0));
                        polyline2D.Add(new Point2D(x1, 2.0 * System.Math.PI));
                    }
                    return(polyline2D);
                }
            }
            Interface26 pointParamMapper = this.PointParamMapper;

            polyline2D.Add(pointParamMapper.imethod_0(location1));
            polyline2D.Add(pointParamMapper.imethod_0(location2));
            return(polyline2D);
        }