예제 #1
0
 public void addSecondInfo(Face tSecondFace, Point3d tSecondFaceIntersection) {
     if (edge.rightFace == tSecondFace)
     {
         rightFaceIntersection = tSecondFaceIntersection;
     }
     else
     {
         leftFaceIntersection = tSecondFaceIntersection;
     }
     doubleIntersection = true;
 }
예제 #2
0
 public FlippedEdge(Edge tFlippedEdge, Face tFirstFace, Point3d tFirstFaceIntersection)
 {
     edge = tFlippedEdge;
     if (edge.rightFace == tFirstFace)
     {
         rightFaceIntersection = tFirstFaceIntersection;
     }
     else
     {
         leftFaceIntersection = tFirstFaceIntersection;
     }
     doubleIntersection = false;
 }
예제 #3
0
파일: Vertex.cs 프로젝트: formateng/giraffe
 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);
     }
 }
예제 #4
0
 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));
     }
 }
예제 #5
0
파일: Vertex.cs 프로젝트: formateng/giraffe
        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];
        }