public void AddFace(int A, int B, int C, Node2List Nodes) { FaceEx faceEx = new FaceEx(A, B, C); faceEx.ComputeBC(Nodes); AddFace(faceEx); }
public void AddFace(FaceEx F) { int num = m_F.BinarySearch(F, m_compare_front); if (num < 0) { m_F.Insert(num ^ -1, F); } else { m_F.Insert(num, F); } }
public void InsertFaces(Node2List nodes) { int num = m_F.Count - 1; for (int i = 0; i <= num; i++) { FaceEx faceEx = m_F[i]; if (faceEx != null) { Polyline polyline = new Polyline(); polyline.Add(nodes[faceEx.A].x, nodes[faceEx.A].y, 0.0); polyline.Add(nodes[faceEx.B].x, nodes[faceEx.B].y, 0.0); polyline.Add(nodes[faceEx.C].x, nodes[faceEx.C].y, 0.0); polyline.Add(nodes[faceEx.A].x, nodes[faceEx.A].y, 0.0); } } }