VPython
VPython| 원저작자 | 데이비드 셰러 |
|---|---|
| 초기 릴리즈 | 전 |
| 안정된 릴리스 | 7.5.2 / 2019년 11월 , 전([1] |
| 기입처 | C++, Python |
| 운영 체제 | 크로스 플랫폼 |
| 면허증. | 오픈 소스 |
| 웹 사이트 | www |
VPython은 Python 프로그래밍 언어와 Visual이라는 3D 그래픽 모듈입니다.VPython은 사용자가 3D 공간에서 구나 원뿔과 같은 개체를 만들고 이러한 개체를 창에 표시할 수 있도록 합니다.이것에 의해, 심플한 시각화를 간단하게 작성할 수 있기 때문에, 프로그래머는 프로그램의 계산면에 보다 집중할 수 있습니다.VPython은 단순하기 때문에 특히 교육 환경에서 간단한 물리학을 설명하기 위한 도구가 되었습니다.
역사
1985년, cT 프로그래밍 언어는 카네기 멜론 대학의 연구원들에 의해 만들어졌다.이 프로젝트에 기여한 사람들로는 데이비드 앤더슨, 브루스 셔우드, 주디스 셔우드, 케빈 휘틀리가 있었다.cT 프로그래밍 언어는 주로 튜터(1965년)와 마이크로튜터(1977년) 프로그래밍 언어에서 파생되었습니다.cT는 많은 어플리케이션을 가지고 있었지만, 주로 교실 환경에서 2D 그래픽을 사용했습니다.수상 경력이 있는 많은 교육 프로그램이 특히 물리학 분야에서 cT(VISQ 참조)로 작성되었습니다.1997년, 카네기 멜론의 학생들은 Ruth Chabay와 Bruce Sherwood에 의해 만들어진 새로운 물리 입문 강좌에서 cT를 배웠다.
1998년 David Scherer는 대학에 신입생으로 입학하여 cT를 사용하는 입문 물리학 수업 중 하나에 등록했습니다.cT는 비교적 쉬운 2D 그래픽 프로그래밍 환경을 제공했지만 Scherer는 더 나은 도구를 만들 수 있는 가능성을 보았습니다.2000년 봄과 여름, David Andersen, Ruth Chabay, Ari Heitner, Ian Peters 및 Bruce Sherwood의 도움으로 Scherer는 CT 프로그래밍 언어보다 사용하기 쉬울 뿐만 아니라 3차원 객체 렌더링 모듈인 Visual을 만들었습니다.Python plus Visual의 조합을 VPython이라고 합니다.cT 프로그래밍 언어의 추가 개발은 종료되고 새로 생성된 VPython이 대신 사용되었습니다.VPython이 만들어진 이후 여러 버전이 일반에 공개되었습니다.
In 2016, developers announced[2][3] that classic VPython would no longer be developed. Instead, development will concentrate on Glowscript and Jupyter implementations of the language.
Usage
VPython is a simple rendering tool for 3D objects and graphs. Its main use has been in education, but it has also been used in commercial or research settings. VPython was first used in introductory physics courses at Carnegie Mellon and then spread to other universities and eventually high schools, especially in connection with the Matter & Interactions curriculum.
A related development due to David Scherer and Bruce Sherwood is GlowScript, which makes it possible to write and run VPython programs in a browser, including on mobile devices, thanks to the RapydScript Python-to-JavaScript compiler, created by Alexander Tsepkov. Programs can be written, run, and stored at glowscript.org, and the compiled-to-JavaScript code can be exported and embedded in one's own web page. John Coady has created the ivisual version for use in the IPython, now Jupyter environment, using the GlowScript WebGL graphics libraries to render 3D output in an IPython/Jupyter notebook. Rhett Allain in his Wired blog shows an example of using Trinkets to embed both editable VPython source code and 3D execution in one's own web page.
Objects
See the article on Python for Python syntax. This article will address several of the objects that are VPython specific. Click here for the complete documentation. The cylinder object is a good example of a simple VPython object. Here is an example of a simple cylinder as given in VPython's documentation (in older VPython implementations, the module to import is vpython, not visual):
from visual import * # Import the visual module rod = cylinder(pos=(0, 2, 1), axis=(5, 0, 0), radius=1) Some similar objects offered by the VPython 3D rendering engine are the cone, sphere, and box objects. In addition to solid objects, VPython offers graphing tools as well. Here is an example of a simple graph in VPython as given in its documentation:
부터 visual.graph 수입품 * # 그래프 기능 Import 부터 수치 수입품 오렌지색, 왜냐하면, exp 기능 1 = 구부러지다(색.=색..청록색) # 연결된 곡선 객체 위해서 x 에 오렌지색(0., 8.1, 0.1): # x 는 0 ~8 입니다 기능 1.줄거리.(포스=(x, 5. * 왜냐하면(2. * x) * exp(-0.2 * x))) # 플롯 레퍼런스
- ^ Sherwood, Bruce. "GlowScript VPython and VPython 7". Retrieved 11 November 2019.
- ^ "VPython". vpython.org. Retrieved 2016-07-20.
- ^ Sherwood, Bruce (25 January 2016). "The Evolution of VPython". Bruce Sherwood. Retrieved 20 July 2016.
외부 링크
- http://www.vpython.org/
- http://www.vpython.org/contents/cTsource/cToverview.html
- http://linuxgazette.net/144/john.html
- Scherer, D.; Dubois, P. & Sherwood, B. (2000). "VPython: 3D Interactive Scientific Graphics for Students". Computing in Science and Engineering. 2 (Sept./Oct. 2000): 82–88. Bibcode:2000CSE.....2e..56S. doi:10.1109/5992.877397.

