Skip to content

Help with example CGAL 6.0 - 2D and Surface Function Interpolation #8545

Answered by DarkSun812
DarkSun812 asked this question in Q&A
Discussion options

You must be logged in to vote

I know I just asked the question but I saw what the error was, the problem is that in the dataset I was using, the first value to interpolate did not return coordinates.

The following code before the failed line prevents the program from closing and continues with the other points.

if (coords.empty()) {
    std::cout << pointsInterpolation[i].x() << " " << pointsInterpolation[i].y() <<" Not valid coords" << std::endl;
    continue;
}

But this opens another question, how can I do to calculate those missing points, is there any way known to CGAL to handle those cases?

What do you recommend for these cases?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by DarkSun812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant