update doc
This commit is contained in:
parent
a42bed2390
commit
1dcb9602ae
2 changed files with 6 additions and 2 deletions
|
|
@ -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) :**
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue