BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.87k stars 126 forks source link

compute_delaunay with created text file #148

Closed glennDittmann closed 6 months ago

glennDittmann commented 6 months ago

Hello, I compiled as described here and everything worked fine.

Now, I try to run

./compute_delaunay points.txt triangles dimension=2

from the examples.

For that, I created points.txt (based on here), which looks like this:

0.0 0.0
2.0 0.0
1.0 1.0

I get an Data I/O error:

   ______________________
 _/ =====[Data I/O]===== \___________________________________________________________________________
|                                                                                                    |
| o-[I/O         ] Output = triangles                                                                |
| o-[Delaunay    ] Using BDEL2d                                                                      |
| o-[I/O         ] Loading file points.txt...                                                        |
|                  Error: Unsupported file format: txt                                               |
|                  Error: Could not load file: points.txt                                            |
| o-[Delaunay    ] Error: Could not load points                                                      |
| o-[Total time  ] Elapsed time: 0 s                                                                 |
\____________________________________________________________________________________________________/

My files is definitely ASCII as file points.txt yields points.txt: ASCII text.

I think there is a very obvious thing that I am seeing. Looking at the source now, to find what might be wrong with my file.

Any help is appreciated.

glennDittmann commented 6 months ago

Okay, I just saw that .txt is not supported anymore.