1 / 6

CG プログラミング論

CG プログラミング論. 平成 26 年 7 月 14 日 森田 彦. 各自指定された座席に着席して下さい. D202  前方. 1. 2. 3. 4. 5. 6. 7. テスト実施要領. 時間: 13:15 ~ 14:15 (途中退出はなし) 参照:配布プリントと「プログラミング」テキスト参照可 テスト 終了後、模範解答を配ります。各自答え合わせをして下さい。→質問があれば受け付けます 。. 第 13 章、第 14 章のプリントは本日配布します。. 提出 期限は 7/28 (月) 3 講時終了までとします。. 応用課題12- B  解答.

Télécharger la présentation

CG プログラミング論

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CGプログラミング論 平成26年7月14日 森田 彦

  2. 各自指定された座席に着席して下さい D202 前方 1 2 3 4 5 6 7

  3. テスト実施要領 • 時間:13:15~14:15(途中退出はなし) • 参照:配布プリントと「プログラミング」テキスト参照可 • テスト終了後、模範解答を配ります。各自答え合わせをして下さい。→質問があれば受け付けます。 第13章、第14章のプリントは本日配布します。 提出期限は7/28(月)3講時終了までとします。

  4. 応用課題12-B  解答 void DrawGraphics(Graphics g) { double Vx=Double.parseDouble(jTextFieldVx.getText()); double Vy=Double.parseDouble(jTextFieldVy.getText()); double Vz=Double.parseDouble(jTextFieldVz.getText()); double[][][] faceY=newdouble[200][200][4]; double[][][] faceZ=newdouble[200][200][4]; intNp1=200,Np2=200,Np=4,r=100; Sphere(Np1,Np2,faceX,faceY,faceZ,r); //球を描くためのポリゴン の座標の計算 ・・・・ shade.MyPaint(g); //画像の描画 }

  5. 応用課題12-C  解答 void DrawGraphics(Graphics g) { double Vx=Double.parseDouble(jTextFieldVx.getText()); double Vy=Double.parseDouble(jTextFieldVy.getText()); double Vz=Double.parseDouble(jTextFieldVz.getText()); double[][][] faceY=newdouble[200][200][4]; double[][][] faceZ=newdouble[200][200][4]; int Np1=200,Np2=200,Np=4,r=100; Sphere(Np1,Np2,faceX,faceY,faceZ,r); //球を描くためのポリゴン の座標の計算 ・・・・ double RayX=Double.parseDouble(jTextFieldRayX.getText()); double RayY=Double.parseDouble(jTextFieldRayY.getText()); double RayZ=Double.parseDouble(jTextFieldRayZ.getText()); doubleP_a=0,P_d=0,P_s=1.0; //光の各成分の最大                                           強度の設定  ・・・・ shade.MyPaint(g); //画像の描画 }

  6. 第13章 ベジェ曲線 第14章 回転体の描画 • 提出課題① 第13章 ベジェ曲線 【応用課題13-A】~【応用課題13-C】の3題です。 • 提出課題② 第14章 回転体の描画 【応用課題14-A】~【応用課題14-D】の4題です。 →提出期限は7/28(月)3講時終了まで

More Related