std::pair<std::size_t, std::size_t> FilletChamferPointArrayParam::get_seg(int index, std::vector<Geom::Path> subpaths)
{
std::size_t counter = -1;
std::size_t first = 0;
std::size_t second = 0;
std::cout << subpaths.size() << "SS\n";
for(first = 0; first < subpaths.size(); ++first){
for(second = 0; second < subpaths[first].size(); second++){
counter++;
if(counter == index){
break;
}
}
if(counter == index){
break;
}
}
std::pair<std::size_t, std::size_t> out(first, second);
std::cout << first << "first\n" << second << "second\n";
return out;
}
-thanks LiamW
Please log in to leave a comment!