搜索
您的当前位置:首页三维课件01

三维课件01

来源:爱问旅游网
INTRODUCTION“SOLID INTERPRETER” WAS DEVELOPED FOR THE EDUCATION OF DESCRIPTIVE GEOMETRY AND COMPUTER GRAPHICS. THE DEVELOPER IS PROF. YASUSHI NIITSUIN TOKYO DENKI UNIVERSITY, JAPAN. NOW CYBER SOLID LABORATORY HAS COPYRIGHTS OF THIS PROGRAM. THIS PROGRAM IS POSSIBLE TO BE USED IN THE FOLLOWING FIELDS,[1] DESCRIPTIVE GEOMETRY FOR MECHANICAL ENGINEERING AND ARCHITECTURE.[2] 3D MODELING OF MOLECULAR STRUCTURE FOR EDUCATION AND RESEARCH.[3] 3D COMPUTER GRAPHICS AND CREATION OF EFFECTIVE IMAGES.[4] EDUCATION AND CREATION OF 3D ANIMATION.[5] COMPUTER AND PROGRAMMING TRAINING IN SCHOOL.THE EXPLANATION OF THE COMMANDSProgramming of “Solid Interpreter”

With programming of “Solid Interpreter”, we can create

the 12 kinds of primitive solid objects, transfer and rotate them, and combine them by boolean operations.

The programming of “Solid Interpreter” is described by

the text, as well as other programming language.The

correction of the program (“Solid Modeling”) is carried out in text editing.

The program of “Solid Interpreter” is executed in order

from the head line for the bottom. The control structure of “Repeat” and “if-else” are available.

Types and functions of the commandsCreate primitiveCone Create “Cone”.Cube Create “Cube”.CylinderCreate “Cylinder”.Prism Create “Prism”Pyramid Create “Pyramid”.Sphere Create “Sphere” and regular 12, 20(icosahedrals), 32, 80 cubics.Ellipse Create “Spheroid”.Torus Create “Torus” (donuts like shape) Spiral Create “Spiral Spring”.Revolve Create “Revolve”.Helix Create “Helical Spring”.Line Create Line Object.Eye Create/Operate EYE Object.Clear Clear Graphic Screen.Display Display Solid and Group Objects.Dispcord Display Coordinate Axis and Meshes on Graphic Screen.Wait Wait time and display (Second Unit).Mwait Wait time and display (Mili-second Unit).Window Set display windows.Graphic DisplayTypes and functions of the commandsOperationOther CommandsMove Transfer Object (Solid/Group, Eye).Rotate Rotete Object (Solid/Group, Eye).Affine Affine Transfer.Color Set/Change Color of Object.(16 colors)Xcolor Set Edge/Face Color of Object (real Color).Fcolor Set/Change Color of Object. (Real Color)Delete Erase (Delete) Object.Rename Change the Name of Object.=,+,-,* Copy Objects, Boolean Operations.Ncopy Multiple Copy Object.# Comment Line ( not executing line ) designation.Group Create/Operate Group Object.Axis Create/Operate Axis Object.Repeat Repeat control instruction.If -Else Conditional branch instruction.Define Declaration of the string into constant or variable.A,a,B,b,..Variables of real numbers (one character object).% Symbol denotes Integer value of repeat count (Repeat command).„\\‟ or „/‟Symbol which separates Group and Group, Group and Solid object.Writing method of command.

Syntax:

Command (-options) [Solid/Group/..] [Parameters]

“Command” name does not distinguish capital letter from lower case

letter.

“option” designates the operation of the command.

The Object name must be typed with distinguishing lower case letter from

the capital letter. Only the alphanumeric character can be used for the Object name. First character of the name should be alphabet character.

Usually “Parameters” are numeric values or variables. They are divided in

‘space’ or ‘tab’ or ‘Kanma’ (‘,’) , when multiple numerical value are designated.

Writing method of command.

When multiple numerical values and object names are designated, they are divided in ‘space’ or ‘tab’ or ‘Kanma’ (‘,’) . Multiple delimiter of ‘space’, ‘tab’ and ‘,’ are equivalent to one delimiter. Cone cx0 10 10 12.9 is same as CONE cx0 10.0, 10.0, 12.9

Symbol of ‘;’ acts the function equal to the line feed code. Multiple command lines can be written in one line by dividing with ';‘.Wait 2;Clear;Display Myeye body, seen

Examples of Command Lines

Cone cx0 10 10 12.9CONE cx0 20.0, 10.0, 12.9

Display eye0 cx0 qq0 e1WAIT 2; Clear

PRISM -r pr1 4, 10; 0,0; 1,1; 0,2;-1,-1Affine qq0 0,0,0

2,0,0; 0,1,0; 0,0.5,1Axis -a AX01 Body

The application of Object name.

Examples of right name of Eye, Group, Axis and Solid

Object:

XX01, qq0, xWing, R_ring001, iZ909,_Wind, ac0, Qx007, Body, AXIS9

Wrong examples as Object names:

X(1 char. is used as a variable )123XX(first char. is not alphabet or ‘_’ )$X98( there are non-alphanumeric char.)windows9895NTXZZ0( more than 15 chars. )Cone( Same string as “Command” )

Wrong and Right examples of Parameters expression.

Eye eye0 100 100 60, 000, 2, 1, 3, 0, 0

There is no delimiter.(Error)

Eye eye0 100 100 60, 0 0 0, 2, 1, 3, 0, 0

acceptable (OK)

Prism pr01, 4, 10; 2, 1, 3; 4, 6; ….

Should written two parameters.(Error)Prism pr01, 4, 10; 2, 1; 4, 6; ….

acceptable (OK)

END OF EXPLANATION OF “COMMAND WRITING”

因篇幅问题不能全部显示,请点此查看更多更全内容

Top