summaryrefslogtreecommitdiffstats
path: root/Master/CGuCAD/projects/Markus/AbschlusArbeiterklasse.cs
blob: 20277613ed9394b67d3cf582ef97ea72c46fb91f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using Autodesk.AutoCAD.Geometry;

namespace Praktikum
{
    class AbschlusArbeiterklasse
    {
        public ArrayList GetLinien(PolyNode[] pnPolyNodes)
        {
            ArrayList P2D = new ArrayList();

            for (int i = 0; i < pnPolyNodes.Length; i++)
                P2D.Add(pnPolyNodes[i]);

            

            SpeichenStern SPStern = new SpeichenStern(P2D);
            ArrayList alTest = SPStern.GetAllPossibleLines();


            int iCounter = alTest.Count - 1;
            ArrayList alErgebnisse = new ArrayList();
            for (int i = iCounter; i >= 0; --i)
            {
              //  if (i == 19)
              //      i = i;
                if (2 == i)
                    i = i;
                    //break;
                
                if ((SPStern.TryToSetLinie((structLinien)alTest[i])))
                {
                    SPStern.PrintStern();
                    alErgebnisse.Add(i);
                }
            }

           // SPStern.RemoveOverlap();


            return SPStern.GetGesetzteLinien();

        }
    }
}