1. std::pair<std::size_t, std::size_t> FilletChamferPointArrayParam::get_seg(int index, std::vector<Geom::Path> subpaths)
  2. {
  3. std::size_t counter = -1;
  4. std::size_t first = 0;
  5. std::size_t second = 0;
  6. std::cout << subpaths.size() << "SS\n";
  7. for(first = 0; first < subpaths.size(); ++first){
  8. for(second = 0; second < subpaths[first].size(); second++){
  9. counter++;
  10. if(counter == index){
  11. break;
  12. }
  13. }
  14. if(counter == index){
  15. break;
  16. }
  17. }
  18. std::pair<std::size_t, std::size_t> out(first, second);
  19. std::cout << first << "first\n" << second << "second\n";
  20. return out;
  21. }
  1. More ...
 
 

83

 

1554

function fefactored

-thanks LiamW

PasteBin

大小
702 位元組
建立時間
類型
text/plain
Public Domain (PD)
登入以留下評註!