Version 3 (modified by 11 years ago) (diff) | ,
---|
Primitivi
Struktura programa v Python OCC
Rabimo uvoziti uporabniški vmesnik, ki nam omogoči preprosto manipulacijo predstavljenega objekta (glava dokumenta):
from OCC.Display.SimpleGui import *
Uvedba funkcij za iniciacijo prikaza:
display, start_display, add_menu, add_function_to_menu = init_display()
Iniciacija prikaznega okna:
start_display()
Uporaba miške v uporabniškem vmesniku:
- Rotacija objekta: levi gumb na miški
- Translacija objekta: srednji gumb na miški
- Povečava objekta: desni gumb na miški
Uporaba tipkovnice v uporabniškem vmesniku:
- Tipka'w'- prikaz žičnega modela
- Tipka 'e'- prikaz vidnih robov
- Tipka 's'- prikaz volumskega modela
- Tipka 'f'- prikaz celega objekta v prikaznem oknu
- Tipka 'q'- prikaz vidnih robov
Attachments (38)
-
Python OCC.pdf (1.1 MB) - added by 11 years ago.
predstavitev primitivov
- display.png (18.3 KB) - added by 11 years ago.
- Kocka.png (17.8 KB) - added by 11 years ago.
- Vozlisca.png (15.6 KB) - added by 11 years ago.
- Robovi.png (19.3 KB) - added by 11 years ago.
- Solid.png (19.5 KB) - added by 11 years ago.
- Solid-barve.png (20.5 KB) - added by 11 years ago.
- Vozlisca.2.png (15.6 KB) - added by 11 years ago.
- Wire.png (19.6 KB) - added by 11 years ago.
- Povrsina.png (17.8 KB) - added by 11 years ago.
- Izvlek_2.png (73.2 KB) - added by 11 years ago.
- Izvlek_krozni.png (117.7 KB) - added by 11 years ago.
- Kvader.png (17.6 KB) - added by 11 years ago.
- Kvader-nagib.png (50.6 KB) - added by 11 years ago.
- Meniji.png (75.6 KB) - added by 11 years ago.
- Sfera.png (102.5 KB) - added by 11 years ago.
- Stozec.png (96.9 KB) - added by 11 years ago.
- Torus.png (181.0 KB) - added by 11 years ago.
- Valj.png (80.3 KB) - added by 11 years ago.
- 20.png (53.3 KB) - added by 11 years ago.
- 21.png (45.0 KB) - added by 11 years ago.
- 22.png (124.1 KB) - added by 11 years ago.
- 23.png (51.3 KB) - added by 11 years ago.
- 24.png (49.6 KB) - added by 11 years ago.
- 25.png (90.7 KB) - added by 11 years ago.
- 26.png (21.6 KB) - added by 11 years ago.
- 27.png (27.5 KB) - added by 11 years ago.
- 28.png (34.9 KB) - added by 11 years ago.
- 29.png (64.7 KB) - added by 11 years ago.
- 30.png (65.7 KB) - added by 11 years ago.
- 31.png (35.0 KB) - added by 11 years ago.
- 32.png (19.6 KB) - added by 11 years ago.
- 33.png (22.8 KB) - added by 11 years ago.
- 24a.png (27.9 KB) - added by 11 years ago.
- 34.png (45.1 KB) - added by 11 years ago.
- 35.png (20.5 KB) - added by 11 years ago.
-
Izdelava_zaokrozitev_in_posnetij_krajse.py (2.2 KB) - added by 9 years ago.
Primer iz vaj KT 9.11.2015
-
Izdelava_zaokrozitev_in_posnetij.py (11.1 KB) - added by 9 years ago.
Primeri zaokroževanj in posnetij kocke z uporabo menijev in funkcijo za spremembo radija.