Ejemplo n.º 1
0
        LDTriangleList simpleTriangle()
        {
            LDTriangleList triangles = new LDTriangleList();
            LDTriangle     t1        = new LDTriangle(0, 1, 2);

            triangles.Add(t1);
            return(triangles);
        }
Ejemplo n.º 2
0
        public LDTriangleList find(LDIndexLine line)
        {
            LDTriangleList result = new LDTriangleList();

            foreach (var t in this)
            {
                if (t.containsLine(line))
                {
                    result.Add(t);
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
        //その頂点を含む三角形リストを取得
        public LDTriangleList getRelatedTriangles(int pointIndex)
        {
            LDTriangleList result = new LDTriangleList();

            foreach (var t in this)
            {
                if (t.hasIndex(pointIndex))
                {
                    result.Add(t);
                }
            }

            return(result);
        }