Changes between Version 6 and Version 7 of salome_shaper


Ignore:
Timestamp:
Oct 11, 2019, 4:04:00 PM (4 years ago)
Author:
dpenko
Comment:

Include image material for the addBox example. Use HTML instead of TRAC syntax for adding images as TRAC does not support image captions.

Legend:

Unmodified
Added
Removed
Modified
  • salome_shaper

    v6 v7  
    99 * [https://events.prace-ri.eu/event/896/sessions/2723/attachments/998/1676/SHAPER_AShortIntro_2.pdf Predstavitev SHAPER modula]
    1010 * [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.)]
    1212 * [https://www.youtube.com/channel/UCm7CSP3v1VF6brzmTlV9c3Q SHAPER primeri na Youtube]
    1313 * [http://www.learnsalome.org/shaper/interactive_tutorial SHAPER interaktivni tutorial]
     
    1717= Primer: Postopek izdelave primitivov =
    1818
     19
    1920V SALOME Python konzolo vnesemo naslednje ukaze:
    2021
     22
    2123{{{
    2224#!python
     
    2729# Inicializiramo model
    2830model.begin()
    29 mypartset = model.moduleDocument()
     31myPartSet = model.moduleDocument()
    3032
    3133# Kreiramo part
    32 Part = model.addPart(partSet)
     34Part = model.addPart(myPartSet)
    3335Part_doc = Part.document()
    3436
    3537# Dodamo kocko
    3638Box = 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>
    4050}}}
    4151