hermespy-rt

Minimalistic signal processing ray-tracer in C
git clone https://git.ea.contact/hermespy-rt
Log | Files | Refs

commit 4997af87aadb620f6a652e56bc731931641d1a9d
parent 8d658d7c8d04df7712e58f56bbb4b8df292ce501
Author: Egor Achkasov <eaachkasov@edu.hse.ru>
Date:   Mon, 24 Mar 2025 22:08:26 +0100

Add name field to scene conf csv

Diffstat:
Mscene_fromSionna.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scene_fromSionna.c b/scene_fromSionna.c @@ -190,7 +190,7 @@ free_and_error: /** Read a scene config CSV file. * * The CSV file must be a text file with the following format: - * material_index,velocity_x,velocity_y,velocity_z + * name,material_index,velocity_x,velocity_y,velocity_z * * The file can have any number of lines except the first one, which is the header. * If a mesh is not in the CSV file, @@ -222,7 +222,7 @@ void readCsv( perror("Error: cannot read header"); exit(8); } - if (strncmp(buf, "material_index,velocity_x,velocity_y,velocity_z\n", 48)) { + if (strncmp(buf, "name,material_index,velocity_x,velocity_y,velocity_z\n", 48)) { perror("Error: invalid header"); exit(8); }