public void addSecondInfo(Face tSecondFace, Point3d tSecondFaceIntersection) { if (edge.rightFace == tSecondFace) { rightFaceIntersection = tSecondFaceIntersection; } else { leftFaceIntersection = tSecondFaceIntersection; } doubleIntersection = true; }
public FlippedEdge(Edge tFlippedEdge, Face tFirstFace, Point3d tFirstFaceIntersection) { edge = tFlippedEdge; if (edge.rightFace == tFirstFace) { rightFaceIntersection = tFirstFaceIntersection; } else { leftFaceIntersection = tFirstFaceIntersection; } doubleIntersection = false; }
public void addFaceifNew(Face faceToAdd) { Boolean isNew = true; for (int i = 0; i < connectedFaces.Count; i++) { if (faceToAdd.index == connectedFaces[i].index) { isNew = false; } } if (isNew) { connectedFaces.Add(faceToAdd); } }
internal void addToFlippedEdgeInfo(int flippedEdgeIndex, Face face, IntersectionEvent intersection) { Boolean isNew = true; for (int k = 0; k < flippedEdgeInfo.Count; k++) { if (flippedEdgeInfo[k].edge.index == face.faceEdges[flippedEdgeIndex].index) { flippedEdgeInfo[k].addSecondInfo(face, intersection.PointA); isNew = false; } } if (isNew) { flippedEdgeInfo.Add(new FlippedEdge(face.faceEdges[flippedEdgeIndex], face, intersection.PointA)); } }
internal Face returnNextAntiClockwiseFace(Face face0) { int indexOfNext=-1; for (int i = 0; i < connectedFaces.Count; i++) { if (face0.index == connectedFaces[i].index) { indexOfNext = (i + 1) % connectedFaces.Count; break; } } if (indexOfNext == -1) { } return connectedFaces[indexOfNext]; }