Lines Matching defs:rightChain
58 vertexArray* rightChain,
76 midIndex1 = rightChain->findIndexBelowGen(rightGridChain->get_v_value(gridIndex1),
81 if(rightChain->getVertex(midIndex1)[1] >= rightGridChain->get_v_value(gridIndex2))
84 midIndex2 = rightChain->findIndexAboveGen(rightGridChain->get_v_value(gridIndex2),
91 Real temp = rightChain->getVertex(midIndex1)[1];
105 Real temp = rightChain->getVertex(midIndex2)[1];
125 cornerTop = rightChain->getVertex(up_rightCornerIndex);
144 cornerBot = rightChain->getVertex(down_rightCornerIndex);
165 sampleRightSingleTrimEdgeRegionGen(cornerTop, rightChain->getVertex(midIndex1),
166 rightChain,
179 sampleRightSingleTrimEdgeRegionGen(rightChain->getVertex(midIndex2),
181 rightChain,
194 sampleRightStripRecF(rightChain,
206 rightChain,
222 vertexArray* rightChain,
266 rightChain, rightStart, rightEnd,
305 void sampleRightStripRecF(vertexArray* rightChain,
324 assert(rightChain->getVertex(topRightIndex)[1] <= rightGridChain->get_v_value(rightGridChainStartIndex) &&
325 rightChain->getVertex(botRightIndex)[1] >= rightGridChain->get_v_value(rightGridChainEndIndex));
331 while(rightChain->getVertex(index1)[1] >= secondGridChainV){
336 //now rightChain->getVertex(index1-1)[1] >= secondGridChainV and
337 //rightChain->getVertex(index1)[1] < secondGridChainV and
341 //now we have rightChain->getVertex(index1)[1] >= secondGridChainV, and
342 //rightChain->getVertex(index1+1)[1] < secondGridChainV
343 sampleRightOneGridStep(rightChain, topRightIndex, index1, rightGridChain, rightGridChainStartIndex, pStream);
345 //if rightChain->getVertex(index1)[1] ==secondGridChainV then we can
347 if(rightChain->getVertex(index1)[1] == secondGridChainV)
351 sampleRightStripRecF(rightChain, index1, botRightIndex, rightGridChain, rightGridChainStartIndex+1, rightGridChainEndIndex, pStream);
355 //otherwise, we have rightChain->getVertex(index1)[1] > secondV
361 uppervert = rightChain->getVertex(index1);
362 lowervert = rightChain->getVertex(index1+1); //okay since index1<botRightindex
375 sampleRightStripRecF(rightChain, index1+1, botRightIndex, rightGridChain, index2, rightGridChainEndIndex, pStream);
380 void sampleRightOneGridStepNoMiddle(vertexArray* rightChain,
394 rightChain,
403 void sampleRightOneGridStep(vertexArray* rightChain,
410 if(checkMiddle(rightChain, beginRightIndex, endRightIndex,
414 sampleRightOneGridStepNoMiddle(rightChain, beginRightIndex, endRightIndex, rightGridChain, rightGridChainStartIndex, pStream);
474 sline = new sampledLine(vert1, rightChain->getVertex(endRightIndex));
482 sline = new sampledLine(rightChain->getVertex(i), rightChain->getVertex(i-1));
490 sline = new sampledLine(rightChain->getVertex(beginRightIndex), vert2);
504 Real prevU = rightChain->getVertex(i)[0];
506 Real thisU = rightChain->getVertex(i)[0];
516 if(i-1 == beginRightIndex && rightChain->getVertex(beginRightIndex)[1] == rightGridChain->get_v_value(rightGridChainStartIndex))
522 j = rightChain->findDecreaseChainFromEnd(i-1/*beginRightIndex*/, endRightIndex);
530 while(rightChain->getVertex(j+1)[1] == rightGridChain->get_v_value(rightGridChainStartIndex+1))
533 monoTriangulation2(rightChain->getVertex(j+1),
535 rightChain,
544 stripOfFanRight(rightChain, temp, j+1, rightGridChain->getGrid(),
555 stripOfFanRight(rightChain, i-1, beginRightIndex, rightGridChain->getGrid(),
572 rightChain,
581 void stripOfFanRight(vertexArray* rightChain,
608 trimVerts[k][0] = rightChain->getVertex(i)[0];
609 trimVerts[k][1] = rightChain->getVertex(i)[1];
614 trimVerts[k][0] = rightChain->getVertex(i)[0];
615 trimVerts[k][1] = rightChain->getVertex(i)[1];