BrunoLevy / geogram

a programming library with geometric algorithms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compute_delaunay with created text file

glennDittmann opened this issue · comments

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.

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