LDTriangleList simpleTriangle() { LDTriangleList triangles = new LDTriangleList(); LDTriangle t1 = new LDTriangle(0, 1, 2); triangles.Add(t1); return(triangles); }
public LDTriangleList find(LDIndexLine line) { LDTriangleList result = new LDTriangleList(); foreach (var t in this) { if (t.containsLine(line)) { result.Add(t); } } return(result); }
//その頂点を含む三角形リストを取得 public LDTriangleList getRelatedTriangles(int pointIndex) { LDTriangleList result = new LDTriangleList(); foreach (var t in this) { if (t.hasIndex(pointIndex)) { result.Add(t); } } return(result); }