Lines Matching defs:botLeftIndex
850 Int findNeckF(vertexArray *leftChain, Int botLeftIndex,
859 printf("enter findNeckF, botleft, botright=%i,%i,gstartindex=%i\n",botLeftIndex,botRightIndex,gridStartIndex);
870 if(botLeftIndex >= leftChain->getNumElements() ||
874 v=min(leftChain->getVertex(botLeftIndex)[1], rightChain->getVertex(botRightIndex)[1]);
892 printf("leftGridChain->get_v_)value=%f\n",leftGridChain->get_v_value(lowerGridIndex), botLeftIndex);
897 botLeft2 = leftChain->findIndexFirstAboveEqualGen(leftGridChain->get_v_value(lowerGridIndex), botLeftIndex, leftChain->getNumElements()-1) -1 ;
907 if(botLeft2 < botLeftIndex) botLeft2 = botLeftIndex;
909 assert(botLeft2 >= botLeftIndex);
913 Int tempI = botLeftIndex;
915 for(i=botLeftIndex+1; i<= botLeft2; i++)
938 /*find i>=botLeftIndex,j>=botRightIndex so that
941 void findNeck(vertexArray *leftChain, Int botLeftIndex,
947 assert(botLeftIndex < leftChain->getNumElements() &&
952 if(leftChain->getVertex(botLeftIndex)[1] <= rightChain->getVertex(botRightIndex)[1]) //left below right
955 leftLastIndex = botLeftIndex;
959 rightLastIndex=rightChain->findIndexAboveGen(leftChain->getVertex(botLeftIndex)[1], botRightIndex+1, rightChain->getNumElements()-1);
967 botLeftIndex+1,
1523 Int botLeftIndex = leftChain->findIndexStrictBelowGen(
1531 /*if either botLeftIndex>= numelements,
1535 if(! findNeckF(leftChain, botLeftIndex, rightChain, botRightIndex,
1538 if(botLeftIndex == leftChain->getNumElements() ||
1548 botLeftIndex = leftChain->getNumElements()-1;
1558 findNeck(leftChain, botLeftIndex,
1574 botLeftIndex = neckLeftIndex-1;
1583 botLeftIndex = neckLeftIndex;
1593 leftStartIndex, botLeftIndex,
1606 leftStartIndex, botLeftIndex,
1645 leftStartIndex, botLeftIndex,
1684 Int botLeftIndex,
1693 assert(leftChain->getVertex(botLeftIndex)[1] <= leftGridChain->get_v_value(leftGridChainEndIndex));
1694 assert(leftChain->getVertex(botLeftIndex-1)[1] > leftGridChain->get_v_value(leftGridChainEndIndex));
1718 sampleLeftStripRec(leftChain, topLeftIndex+1, botLeftIndex,
1726 Int botLeftIndex,
1735 /*stop condition: if topLeftIndex >= botLeftIndex, then stop.
1737 if(topLeftIndex >= botLeftIndex)
1779 botLeftIndex,
1786 sampleLeftStripRec(leftChain, index1+1, botLeftIndex, leftGridChain, index2, leftGridChainEndIndex, pStream);
1797 * of botLeftIndex is assumed to be above the last
1799 * If botLeftIndex < topLeftIndex, then no connected componeent exists, and this funcion returns without
1801 * Otherwise botLeftIndex >= topLeftIndex, there is at least one triangle to output.
1805 Int botLeftIndex,
1814 /*stop condition: if topLeftIndex > botLeftIndex, then stop.
1816 if(topLeftIndex > botLeftIndex)
1826 leftChain->getVertex(botLeftIndex)[1] >= leftGridChain->get_v_value(leftGridChainEndIndex));
1838 if(index1>botLeftIndex)
1847 if(index1>botLeftIndex)
1865 sampleLeftStripRecF(leftChain, index1, botLeftIndex,leftGridChain, leftGridChainStartIndex+1, leftGridChainEndIndex, pStream);
1867 else if(index1 < botLeftIndex)
1879 lowervert = leftChain->getVertex(index1+1); //okay since index1<botLeftIndex
1896 sampleLeftStripRecF(leftChain, index1+1, botLeftIndex, leftGridChain, index2, leftGridChainEndIndex, pStream);