Skip to main content
. Author manuscript; available in PMC: 2015 Oct 1.
Published in final edited form as: IEEE Comput Graph Appl. 2012 Sep-Oct;32(5):50–61. doi: 10.1109/MCG.2012.93

Figure 3. Simple example: create a Sphere-Builder widget in 5 different hosts with a single uPy script file.

Figure 3

The folder hierarchy of uPy shown in this screengrab represents the Python class hierarchy. Two files, a Modeling Helper and a User Interface Adaptor, exist for each hosting application (B). uPy consists of two main modules (Helper and Adaptor) that automatically recognize the host software as shown in the Sphere.py example code (A). This code produces homogenous results as demonstrated in the screenshots from various hosts shown on the right (C).