Changes between Version 6 and Version 7 of salome_shaper
- Timestamp:
- Oct 11, 2019, 4:04:00 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
salome_shaper
v6 v7 9 9 * [https://events.prace-ri.eu/event/896/sessions/2723/attachments/998/1676/SHAPER_AShortIntro_2.pdf Predstavitev SHAPER modula] 10 10 * [https://docs.salome-platform.org/latest/gui/SHAPER/index.html SHAPER dokumentacija] 11 * [https://docs.salome-platform.org/latest/tui/SHAPER/ SHAPER dokumentacija ( code source)]11 * [https://docs.salome-platform.org/latest/tui/SHAPER/ SHAPER dokumentacija (moduli, opis funkcij itd.)] 12 12 * [https://www.youtube.com/channel/UCm7CSP3v1VF6brzmTlV9c3Q SHAPER primeri na Youtube] 13 13 * [http://www.learnsalome.org/shaper/interactive_tutorial SHAPER interaktivni tutorial] … … 17 17 = Primer: Postopek izdelave primitivov = 18 18 19 19 20 V SALOME Python konzolo vnesemo naslednje ukaze: 20 21 22 21 23 {{{ 22 24 #!python … … 27 29 # Inicializiramo model 28 30 model.begin() 29 my partset = model.moduleDocument()31 myPartSet = model.moduleDocument() 30 32 31 33 # Kreiramo part 32 Part = model.addPart( partSet)34 Part = model.addPart(myPartSet) 33 35 Part_doc = Part.document() 34 36 35 37 # Dodamo kocko 36 38 Box = model.addBox(Part_doc, 10, 10, 10) 37 38 # Prikaži model 39 model.do() 39 }}} 40 41 {{{ 42 #!html 43 <figure align="center"> 44 <img src="http://trac.lecad.si/vaje/raw-attachment/wiki/salome_shaper/shaper_example_addBox_PythonShell.png" alt="shaper_example_addBox_PythonShell" height="200px"> 45 <img src="http://trac.lecad.si/vaje/raw-attachment/wiki/salome_shaper/shaper_example_addBox_result.png" alt="shaper_example_addBox_result" height="200px"> 46 <img src="http://trac.lecad.si/vaje/raw-attachment/wiki/salome_shaper/shaper_example_addBox_objectBrowser.png" alt="shaper_example_addBox_objectBrowser" height="200px"> 47 48 <figcaption>Prikaz vnosa kode v SALOME Python konzolo (desno), prikaz pridobljenega modela (v sredini) in prikaz drevesne strukture part-a v t.i. Object Browser-ju (desno).</figcaption> 49 </figure> 40 50 }}} 41 51