📄 cobra.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 + -