⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cobra.java

📁 j3me java
💻 JAVA
字号:
package models;import net.jscience.j3dme.*;public class Cobra extends Model{     // Coordinate and Normals (Normal Offset is 5)     static int[] x = {20,  0,-20, 10,-10,  102,-93,  0,  0,   0};     static int[] y = { 0, 10,  0,  0,  0,  205,187,  0,171,-229};     static int[] z = { 10,10, 10,-10,-10,  -51,-47,114,-85,   0};     // Wire definitions from and to array     static int[] wf = { 1,0,3,2,1,4,2,3};     static int[] wt = { 0,3,1,1,4,2,0,4};     // Polygon wire segments     static int[] ws = {          0,1, 2,   // Polygon  0          3,4, 5,   // Polygon  3          6,0, 3,   // Polygon  6          4,2, 7,   // Polygon  9          6,1,7,5   // Polygon 12     };     // Polygons from, to and index aligned with normals     static int[] pf = {0,3,6,9,12 };     static int[] pt = {2,5,8,11,15 };  public Cobra(){     geometry = new Surface(x,y,z,wf,wt,ws,pf,pt,5);  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -