vpython introduction

24
VPython Programming 政大應數數理資訊 2010, Summer Sunday, August 22, 2010

Upload: colin-su

Post on 15-Jan-2015

1.043 views

Category:

Technology


1 download

DESCRIPTION

政大應數數理資訊人才培訓

TRANSCRIPT

Page 1: VPython introduction

VPython Programming政大應數數理資訊

2010, Summer

Sunday, August 22, 2010

Page 2: VPython introduction

VPython Programming政大應數數理資訊

2010, Summer

Sunday, August 22, 2010

Page 3: VPython introduction

VPython Programming政大應數數理資訊

2010, Summer

Sunday, August 22, 2010

Page 4: VPython introduction

What is VPython

3D繪圖的函式庫

以Python程式語言為基礎

重點:

Sunday, August 22, 2010

Page 5: VPython introduction

What is VPython

3D繪圖的函式庫

以Python程式語言為基礎

重點: 很簡單

Sunday, August 22, 2010

Page 6: VPython introduction

Review Python

Variable Type

for startmentwhile statement

List Tuple

Sunday, August 22, 2010

Page 7: VPython introduction

Review Python

Variable Type

for startmentwhile statement

List Tuple Vector

Sunday, August 22, 2010

Page 8: VPython introduction

Box

cube=box()

將cube變數物件化

Sunday, August 22, 2010

Page 9: VPython introduction

Box

cube=box()

將cube變數物件化

Sunday, August 22, 2010

Page 10: VPython introduction

Box

pos

length, height, width

size

axis

(Continue)

Sunday, August 22, 2010

Page 11: VPython introduction

Box

pos

length, height, width

size

axis

(Continue)

Sunday, August 22, 2010

Page 12: VPython introduction

Sphere

ball=sphere()

將ball變數物件化

Sunday, August 22, 2010

Page 13: VPython introduction

Sphere

ball=sphere()

將ball變數物件化

Sunday, August 22, 2010

Page 14: VPython introduction

Sphere

radius

(Continue)

Sunday, August 22, 2010

Page 15: VPython introduction

Sphere

radius

(Continue)

Sunday, August 22, 2010

Page 16: VPython introduction

Arrow

pointer=arrow()

Sunday, August 22, 2010

Page 17: VPython introduction

Arrow

pointer=arrow()

Sunday, August 22, 2010

Page 18: VPython introduction

Arrow

pos, axis

shaftwidth

headwidth

headlength

(Continue)

Sunday, August 22, 2010

Page 19: VPython introduction

Arrow

pos, axis

shaftwidth

headwidth

headlength

(Continue)

Sunday, August 22, 2010

Page 20: VPython introduction

Point

point=points()

pos

size

Sunday, August 22, 2010

Page 21: VPython introduction

Point

point=points()

pos

size

Sunday, August 22, 2010

Page 22: VPython introduction

Display

scene=display()

Sunday, August 22, 2010

Page 23: VPython introduction

Display

scene=display()

Sunday, August 22, 2010

Page 24: VPython introduction

Light

distant_light

local_light

Sunday, August 22, 2010