Exemplo n.º 1
0
        /***************************************************/
        /**** Private Methods                           ****/
        /***************************************************/

        private static List <Point> CollapseToPolylineVertices(this Arc curve, double angleTolerance, int maxSegmentCount = 100)
        {
            int    segmentCount = curve.CollapseToPolylineCount(angleTolerance, maxSegmentCount);
            double step         = 1.0 / segmentCount;
            double param        = step;

            List <Point> result = new List <Point> {
                curve.StartPoint()
            };

            for (int i = 0; i < segmentCount; i++)
            {
                result.Add(curve.PointAtParameter(param));
                param += step;
            }

            return(result);
        }