From 1dcb9602ae2268415f8f4a5e430f261774a1fff5 Mon Sep 17 00:00:00 2001 From: Frater <13979047+saintfrater@users.noreply.github.com> Date: Mon, 11 May 2026 16:29:16 +0200 Subject: [PATCH] update doc --- README.md | 4 ++++ src/main/main.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e35f44..0536069 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,10 @@ Winding : `add_face(a, b, c)` et `add_face(b, d, c)` — CCW vu de l'extérieur. ### Cylindre (`add_cylinder`) +``` +Object3D *add_cylinder(Universe *uni, fixed x, fixed y, fixed z, fixed r, fixed h, int det, uint8_t col, uint8_t wire); +``` + Paramètres : centre local, rayon `r`, hauteur `h`, détail `det`. **Corps (barrel) :** diff --git a/src/main/main.c b/src/main/main.c index d84ec9a..b0f6498 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -29,8 +29,8 @@ int main(void) { set_object_pos(cyl,int_to_f(-70),0,0); //set_object_color(COLOR2); - tmp_obj = add_box(uni, 0, 0, 0, int_to_f(45), int_to_f(60), int_to_f(70), COLOR1, 0); - + //tmp_obj = add_cone(uni, 0, 0, 0, int_to_f(20), int_to_f(60), 12, COLOR1, 0); + tmp_obj = add_torus(uni, 0, 0, 0, int_to_f(20), int_to_f(10), 12, 12, COLOR1, 0); // tmp_obj = add_math_surface(uni, 0, 0, 0, int_to_f(120), int_to_f(120), 30, 30, COLOR2, 0);