Lines Matching defs:pStream

55 void monoTriangulationOpt(directedLine* poly, primStream* pStream)
64 monoTriangulationFun(poly, compV2InX, pStream);
75 monoTriangulationFun(poly, compV2InX, pStream);
87 monoTriangulationFun(ret_p1, compV2InX, pStream);
88 monoTriangulationFun(ret_p2, compV2InX, pStream);
98 monoTriangulationFun(poly, compV2InY, pStream);
107 primStream* pStream)
116 right_chain, right_current, pStream);
134 pStream);
139 pStream);
152 pStream);
157 pStream);
165 primStream* pStream)
167 pStream->triangle(topVertex, inc_chain->getVertex(inc_current), dec_chain->getVertex(dec_current));
170 triangulateXYMonoTB(inc_end-inc_current+1, inc_chain->getArray()+inc_current, dec_end-dec_current+1, dec_chain->getArray()+dec_current, pStream);
172 pStream->triangle(botVertex, dec_chain->getVertex(dec_end), inc_chain->getVertex(inc_end));
183 primStream* pStream)
211 pStream->begin();
212 pStream->insert(topMostV);
214 pStream->insert(rightVerts[j]);
216 pStream->end(PRIMITIVE_STREAM_FAN);
227 pStream->begin();
228 pStream->insert(topMostV);
231 pStream->insert(leftVerts[k]);
233 pStream->end(PRIMITIVE_STREAM_FAN);
243 pStream->begin();
244 pStream->insert(rightVerts[j]); /*the origin of this fan*/
246 pStream->insert(topMostV);
261 pStream->insert(leftVerts[l]);
264 pStream->end(PRIMITIVE_STREAM_FAN);
272 pStream->begin();
273 pStream->insert(leftVerts[i]);/*the origion of this fan*/
287 pStream->insert(rightVerts[l]);
289 pStream->insert(topMostV);
290 pStream->end(PRIMITIVE_STREAM_FAN);
327 primStream* pStream)
335 primStream* pStream)
397 monoTriangulationFun(poly, compV2InX, pStream);
408 monoTriangulationFun(poly, compV2InX, pStream);
420 monoTriangulationFun(ret_p1, compV2InX, pStream);
421 monoTriangulationFun(ret_p2, compV2InX, pStream);
431 //monoTriangulationFun(poly, compV2InY, pStream);
437 monoTriangulationFun(temp, compV2InX, pStream);
447 monoTriangulationFun(poly, compV2InX, pStream);
449 monoTriangulationFun(poly, compV2InY, pStream);
462 pStream);
479 compV2InX, pStream);
485 pStream);
495 primStream* pStream)
508 rChain.processNewVertex(topVertex, pStream);
511 rChain.processNewVertex(dec_array[i], pStream);
514 rChain.processNewVertex(botVertex, pStream);
522 rChain.processNewVertex(topVertex, pStream);
525 rChain.processNewVertex(inc_array[i], pStream);
528 rChain.processNewVertex(botVertex, pStream);
542 rChain.processNewVertex(topVertex, pStream);
546 rChain.processNewVertex(dec_array[i], pStream);
550 rChain.outputFan(inc_array[inc_current], pStream);
554 pStream);
560 rChain.processNewVertex(topVertex, pStream);
564 rChain.processNewVertex(inc_array[i], pStream);
568 rChain.outputFan(dec_array[dec_current], pStream);
572 pStream);
577 void monoTriangulationFun(directedLine* monoPolygon, Int (*compFun)(Real*, Real*), primStream* pStream)
622 &dec_chain, 0, compFun, pStream);
626 void monoTriangulation(directedLine* monoPolygon, primStream* pStream)
668 monoTriangulationRec(topV->head(), botV->head(), &inc_chain, 0, &dec_chain, 0, pStream);
682 primStream* pStream)
692 pStream->triangle(inc_chain->getVertex(inc_smallIndex), botVertex, topVertex);
694 pStream->triangle(inc_chain->getVertex(inc_smallIndex), topVertex, botVertex);
701 pStream->triangle(botVertex, inc_chain->getVertex(inc_largeIndex-1),
706 pStream);
711 pStream->triangle(topVertex, inc_chain->getVertex(inc_smallIndex+1),
714 inc_largeIndex, is_increase_chain, pStream);
722 rChain.processNewVertex(topVertex, pStream);
725 rChain.processNewVertex(inc_array[i], pStream);
727 rChain.processNewVertex(botVertex, pStream);
738 primStream* pStream)
758 rChain.processNewVertex(topVertex, pStream);
761 rChain.processNewVertex(dec_array[i], pStream);
764 rChain.processNewVertex(botVertex, pStream);
772 rChain.processNewVertex(topVertex, pStream);
775 rChain.processNewVertex(inc_array[i], pStream);
778 rChain.processNewVertex(botVertex, pStream);
792 rChain.processNewVertex(topVertex, pStream);
796 rChain.processNewVertex(dec_array[i], pStream);
800 rChain.outputFan(inc_array[inc_current], pStream);
805 pStream);
811 rChain.processNewVertex(topVertex, pStream);
815 rChain.processNewVertex(inc_array[i], pStream);
819 rChain.outputFan(dec_array[dec_current], pStream);
824 pStream);
836 primStream* pStream)
855 rChain.processNewVertex(topVertex, pStream);
858 rChain.processNewVertex(dec_array[i], pStream);
861 rChain.processNewVertex(botVertex, pStream);
870 rChain.processNewVertex(topVertex, pStream);
873 rChain.processNewVertex(inc_array[i], pStream);
876 rChain.processNewVertex(botVertex, pStream);
891 rChain.processNewVertex(topVertex, pStream);
895 rChain.processNewVertex(dec_array[i], pStream);
899 rChain.outputFan(inc_array[inc_current], pStream);
904 pStream);
910 rChain.processNewVertex(topVertex, pStream);
914 rChain.processNewVertex(inc_array[i], pStream);
918 rChain.outputFan(dec_array[dec_current], pStream);
923 pStream);
932 primStream* pStream)
951 rChain.processNewVertex(topVertex, pStream);
954 rChain.processNewVertex(dec_array[i], pStream);
957 rChain.processNewVertex(botVertex, pStream);
966 rChain.processNewVertex(topVertex, pStream);
969 rChain.processNewVertex(inc_array[i], pStream);
972 rChain.processNewVertex(botVertex, pStream);
987 rChain.processNewVertex(topVertex, pStream);
991 rChain.processNewVertex(dec_array[i], pStream);
995 rChain.outputFan(inc_array[inc_current], pStream);
999 pStream);
1005 rChain.processNewVertex(topVertex, pStream);
1009 rChain.processNewVertex(inc_array[i], pStream);
1013 rChain.outputFan(dec_array[dec_current], pStream);
1017 pStream);
1037 primStream* pStream)
1047 rChain.processNewVertex(topVertex->getVertex(top_index), pStream);
1049 rChain.processNewVertex(dec_chain->getVertex(i), pStream);
1054 rChain.processNewVertex(temp->getVertex(i), pStream);
1060 rChain.processNewVertex(topVertex->getVertex(top_index), pStream);
1062 rChain.processNewVertex(inc_chain->getVertex(i), pStream);
1067 rChain.processNewVertex(temp->getVertex(i), pStream);
1074 rChain.processNewVertex(topVertex -> getVertex(top_index), pStream);
1080 rChain.processNewVertex(temp->getVertex(tempIndex), pStream);
1090 rChain.outputFan(inc_chain->getVertex(inc_index), pStream);
1091 monoTriangulationRec(inc_chain, inc_index, temp, tempIndex, oldtemp, oldtempIndex, botVertex, pStream);
1095 rChain.processNewVertex(topVertex -> getVertex(top_index), pStream);
1101 rChain.processNewVertex(temp->getVertex(tempIndex), pStream);
1111 rChain.outputFan(dec_chain->getVertex(dec_index), pStream);
1112 monoTriangulationRec(temp, tempIndex, dec_chain, dec_index, oldtemp, oldtempIndex, botVertex, pStream);
1404 void reflexChain::outputFan(Real v[2], primStream* pStream)
1407 pStream->begin();
1408 pStream->insert(v);
1411 pStream->insert(queue[i]);
1415 pStream->insert(queue[i]);
1417 pStream->end(PRIMITIVE_STREAM_FAN);
1420 void reflexChain::processNewVertex(Real v[2], primStream* pStream)
1453 pStream->begin();
1454 pStream->insert(v);
1457 pStream->insert(queue[k]);
1461 pStream->insert(queue[k]);
1464 pStream->end(PRIMITIVE_STREAM_FAN);