Help with example CGAL 6.0 - 2D and Surface Function Interpolation #8545
-
Good morning everyone, today I tried to adapt a code that is in the CGAL examples (https://doc.cgal.org/latest/Interpolation/Interpolation_2interpolation_2_8cpp-example.html) but when trying to make the first interpolation, it does not print the result. I will leave the adaptation I made to the code to see if you can help me to detect the error I'm making.
Here is an image of what the delauny triangle should look like and the points I want to find. the csv file I want to enter
The csv file with interpolation points
I have no idea where I'm wrong, if you could help me to make this example work I would be very grateful, also if you could explain me what these lines are for since I adapted the code by logic since I saw how it worked, but I don't really know what I did. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is the failing line.
takes about 2 seconds and then the program closes. |
Beta Was this translation helpful? Give feedback.
-
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.
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? |
Beta Was this translation helpful? Give feedback.
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.
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?