hermespy-rt

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

commit 2e7acb2ebe5382af48399387efecfb88b1d42a3a
parent 7f1c7ac4260cad152179ae13f968e3d6bd96782d
Author: Egor Achkasov <eaachkasov@edu.hse.ru>
Date:   Tue, 25 Feb 2025 15:34:50 +0100

Add simple_reflector scene to scene_fromSionna.c

Diffstat:
Mscene_fromSionna.c | 19++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/scene_fromSionna.c b/scene_fromSionna.c @@ -44,9 +44,26 @@ int main(int argc, char *argv[]) { mesh_box.is = (uint32_t*)is_temp; mesh_box.material_index = MATERIAL_CONCRETE; + HRT_Mesh mesh_simple_reflector; + mesh_simple_reflector.num_vertices = 4; + float vs_temp2[] = { + -0.5f, -0.5f, 0.f, + 0.5f, -0.5f, 0.f, + 0.5f, 0.5f, 0.f, + -0.5f, 0.5f, 0.f, + }; + mesh_simple_reflector.vs = (float*)vs_temp2; + mesh_simple_reflector.num_triangles = 2; + uint32_t is_temp2[] = { + 0, 1, 2, + 0, 2, 3, + }; + mesh_simple_reflector.is = (uint32_t*)is_temp2; + mesh_simple_reflector.material_index = MATERIAL_CONCRETE; + HRT_Scene scene; scene.num_meshes = 1; - scene.meshes = &mesh_box; + scene.meshes = &mesh_simple_reflector; FILE *fp = fopen("scene.hrt", "wb"); if (fp == NULL) {