📄 swdiet3d.java
字号:
package bluesmobile.fx.rzr; /* * SWDiet3D : a Java 3D engine port to SuperWaba * Copyright (C) 2006 Natale Vinto <ebballon@interfree.it> * goText group www.gotext.org * * SWDiet3D is a porting for Diet3D, a 3D GPL API for J2ME * All information about it can be found at http://rzr.online.fr * Diet3D is Copyright (C) 2004 of Philippe Coval * The preprocessor lines are left for further works with it * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *//* $Id: SWDiet3D.java,v 1.0 2006/11/28 18:42:00 bluesman Exp $ *//* $Id: Diet3D.java.in,v 1.10 2004/11/02 14:33:14 rzr Exp $ *//** * This in a template java source file wich can be preprocessed with GNU cpp * see CppHack.java.in * @author www.Philippe.COVAL.free.fr * Copyright and License : http://rzr.online.fr/license.htm * $Id: Diet3D.java.in,v 1.10 2004/11/02 14:33:14 rzr Exp $ **//* $Id: HackJavaCpp.java.in,v 1.6 2004/11/02 14:33:14 rzr Exp $ *//* $Id: HackJavaCpp.java.in,v 1.6 2004/11/02 14:33:14 rzr Exp $ *//* $Id: *//** * @author www.Philippe.COVAL.free.fr * Copyright and License : http://rzr.online.fr/license.htm **/// Then edit *.java.in : // This in a template java source file wich can be preprocessed with GNU cpp// see CppHack.java.in// File Generated this way (may help)://// cp ${SRCDIR}Cpphack.java.in ${TMPDIR}$@// sed -e "s/\s*\/\/@cpp \(.*\)/\1/g" < $^ | \// cpp -undef -fno-show-column ${DEFINES} -C -P \// | grep -v "^#" >> ${TMPDIR}$@// You can think it is ugly, but it saved some of my time// If you want more details contact me // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/** * * @author www.Philippe.COVAL.free.fr * Copyright and License : http://rzr.online.fr/license.htm **///--------import waba.fx.*;import waba.sys.*;//#define FPpow //#define FPdiv(x,y) ((((x)<<6)/((y)>>6))>>4) //16:16 flipcode/* $Id: *///#define debug(x) System.out.println(x)//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/** * @author www.Philippe.COVAL.free.fr * Copyright and License : http://rzr.online.fr/license.htm **/public final class SWDiet3D{ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /// 3d mesh public static final int mesh_logo_nv=10; public static final int mesh_logo_nf=8; public static final int mesh_logo_vv[][]= { { -11585, 8689, 0 }, { -11585, -8689, 0 }, { -8689, 0, 0 }, { 5793, -8689, 0 }, { 0, 2896, 0 }, { 11585, -8689, 0 }, { 11585, 8689, 0 }, { 8689, 0, 0 }, { -5793, 8689, 0 }, { 0, -2896, 0 } }; public static final int mesh_logo_vf[][]= { { 3, 9, 2 }, { 1, 2, 0 }, { 2, 9, 0 }, { 6, 7, 5 }, { 5, 7, 4 }, { 4, 7, 8 }, { 3, 4, 8 }, { 8, 9, 3 } };//Scene { //Object { // Named object: "8V_12F_@_www.rzr.online.frpublic static final int mesh_cube_nv=8; public static final int mesh_cube_nf=12;public static final int mesh_cube_vv[][]= { { -11585, -11585, 11585 }, { 11585, 11585, 11585 }, { 11585, -11585, 11585 }, { -11585, 11585, 11585 }, { 11585, 11585, -11585 }, { 11585, -11585, -11585 }, { -11585, 11585, -11585 }, { -11585, -11585, -11585 }};public static final int mesh_cube_vf[][]= { { 0, 7, 2 }, { 5, 2, 7 }, { 6, 3, 4 }, { 1, 4, 3 }, { 6, 7, 3 }, { 0, 3, 7 }, { 4, 5, 6 }, { 7, 6, 5 }, { 1, 2, 4 }, { 5, 4, 2 }, { 3, 0, 1 }, { 2, 1, 0 }};public static final int mesh_cube_vc[]= { 0xff0000, 0xff0000, 0xff00, 0xff00, 0xff, 0xff, 0xff00ff, 0xff00ff, 0xffff00, 0xffff00, 0xffff, 0xffff };//public static obj_trans = new int[obj_nv][3];//public static obj_center = new int[obj_nf][3];//} Object//} Scene //#include "MeshSphere.java.in"//Scene { //Object { // Named object: "58V_112F_@_www.rzr.online.frpublic static final int mesh_sphere_nv=58; public static final int mesh_sphere_nf=112;public static final int mesh_sphere_vv[][]= { { 0, 11585, 0 }, { 3135, 10703, -3135 }, { 0, 10703, -4433 }, { -3135, 10703, -3135 }, { -4433, 10703, 0 }, { -3135, 10703, 3135 }, { 0, 10703, 4433 }, { 3135, 10703, 3135 }, { 4433, 10703, 0 }, { 5793, 8192, -5793 }, { 0, 8192, -8192 }, { -5793, 8192, -5793 }, { -8192, 8192, 0 }, { -5793, 8192, 5793 }, { 0, 8192, 8192 }, { 5793, 8192, 5793 }, { 8192, 8192, 0 }, { 7568, 4433, -7568 }, { 0, 4433, -10703 }, { -7568, 4433, -7568 }, { -10703, 4433, 0 }, { -7568, 4433, 7568 }, { 0, 4433, 10703 }, { 7568, 4433, 7568 }, { 10703, 4433, 0 }, { 8192, 0, -8192 }, { 0, 0, -11585 }, { -8192, 0, -8192 }, { -11585, 0, 0 }, { -8192, 0, 8192 }, { 0, 0, 11585 }, { 8192, 0, 8192 }, { 11585, 0, 0 }, { 7568, -4433, -7568 }, { 0, -4433, -10703 }, { -7568, -4433, -7568 }, { -10703, -4433, 0 }, { -7568, -4433, 7568 }, { 0, -4433, 10703 }, { 7568, -4433, 7568 }, { 10703, -4433, 0 }, { 5793, -8192, -5793 }, { 0, -8192, -8192 }, { -5793, -8192, -5793 }, { -8192, -8192, 0 }, { -5793, -8192, 5793 }, { 0, -8192, 8192 }, { 5793, -8192, 5793 }, { 8192, -8192, 0 }, { 3135, -10703, -3135 }, { 0, -10703, -4433 }, { -3135, -10703, -3135 }, { -4433, -10703, 0 }, { -3135, -10703, 3135 }, { 0, -10703, 4433 }, { 3135, -10703, 3135 }, { 4433, -10703, 0 }, { 0, -11585, 0 }};public static final int mesh_sphere_vf[][]= { { 56, 48, 47 }, { 47, 55, 56 }, { 54, 55, 47 }, { 47, 46, 54 }, { 54, 46, 45 }, { 45, 53, 54 }, { 52, 53, 45 }, { 45, 44, 52 }, { 52, 44, 43 }, { 43, 51, 52 }, { 50, 51, 43 }, { 43, 42, 50 }, { 50, 42, 41 }, { 41, 49, 50 }, { 56, 49, 41 }, { 41, 48, 56 }, { 47, 48, 40 }, { 40, 39, 47 }, { 47, 39, 38 }, { 38, 46, 47 }, { 45, 46, 38 }, { 38, 37, 45 }, { 45, 37, 36 }, { 36, 44, 45 }, { 43, 44, 36 }, { 36, 35, 43 }, { 43, 35, 34 }, { 34, 42, 43 }, { 41, 42, 34 }, { 34, 33, 41 }, { 41, 33, 40 }, { 40, 48, 41 }, { 40, 32, 31 }, { 31, 39, 40 }, { 38, 39, 31 }, { 31, 30, 38 }, { 38, 30, 29 }, { 29, 37, 38 }, { 36, 37, 29 }, { 29, 28, 36 }, { 36, 28, 27 }, { 27, 35, 36 }, { 34, 35, 27 }, { 27, 26, 34 }, { 34, 26, 25 }, { 25, 33, 34 }, { 40, 33, 25 }, { 25, 32, 40 }, { 31, 32, 24 }, { 24, 23, 31 }, { 31, 23, 22 }, { 22, 30, 31 }, { 29, 30, 22 }, { 22, 21, 29 }, { 29, 21, 20 }, { 20, 28, 29 }, { 27, 28, 20 }, { 20, 19, 27 }, { 27, 19, 18 }, { 18, 26, 27 }, { 25, 26, 18 }, { 18, 17, 25 }, { 25, 17, 24 }, { 24, 32, 25 }, { 24, 16, 15 }, { 15, 23, 24 }, { 22, 23, 15 }, { 15, 14, 22 }, { 22, 14, 13 }, { 13, 21, 22 }, { 20, 21, 13 }, { 13, 12, 20 }, { 20, 12, 11 }, { 11, 19, 20 }, { 18, 19, 11 }, { 11, 10, 18 }, { 18, 10, 9 }, { 9, 17, 18 }, { 24, 17, 9 }, { 9, 16, 24 }, { 15, 16, 8 }, { 8, 7, 15 }, { 15, 7, 6 }, { 6, 14, 15 }, { 13, 14, 6 }, { 6, 5, 13 }, { 13, 5, 4 }, { 4, 12, 13 }, { 11, 12, 4 }, { 4, 3, 11 }, { 11, 3, 2 }, { 2, 10, 11 }, { 9, 10, 2 }, { 2, 1, 9 }, { 9, 1, 8 }, { 8, 16, 9 }, { 57, 56, 55 }, { 57, 55, 54 }, { 57, 54, 53 }, { 57, 53, 52 }, { 57, 52, 51 }, { 57, 51, 50 }, { 57, 50, 49 }, { 57, 49, 56 }, { 0, 7, 8 }, { 0, 6, 7 }, { 0, 5, 6 }, { 0, 4, 5 }, { 0, 3, 4 }, { 0, 2, 3 }, { 0, 1, 2 }, { 0, 8, 1 }};public static final int mesh_sphere_vc[]= { 0xed80ed, 0xed80ed, 0xa0bfdf, 0xa0bfdf, 0xff, 0xff, 0xff00, 0xff00, 0xff0000, 0xff0000, 0x82004b, 0x82004b, 0xff7700, 0xff7700, 0xffff00, 0xffff00, 0xed80ed, 0xed80ed, 0x0, 0xa0bfdf, 0xff, 0x0, 0xff00, 0xff00, 0xff0000, 0xff0000, 0x82004b, 0x82004b, 0xff7700, 0xff7700, 0xffff00, 0xffff00, 0xed80ed, 0xed80ed, 0xa0bfdf, 0xa0bfdf, 0xff, 0xff, 0xff00, 0xff00, 0xff0000, 0xff0000, 0x82004b, 0x82004b, 0xff7700, 0xff7700, 0xffff00, 0xffff00, 0xed80ed, 0xed80ed, 0xa0bfdf, 0xa0bfdf, 0xff, 0xff, 0xff00, 0xff00, 0xff0000, 0xff0000, 0x82004b, 0x82004b, 0xff7700, 0xff7700, 0xffff00, 0xffff00, 0xed80ed, 0xed80ed, 0x0, 0xa0bfdf, 0xff, 0x0, 0xff00, 0xff00, 0xff0000, 0xff0000, 0x82004b, 0x82004b, 0xff7700, 0xff7700, 0xffff00, 0xffff00, 0xed80ed, 0xed80ed, 0xa0bfdf, 0xa0bfdf, 0xff, 0xff, 0xff00, 0xff00, 0xff0000, 0xff0000, 0x82004b, 0x82004b, 0xff7700, 0xff7700, 0xffff00, 0xffff00, 0xed80ed, 0xa0bfdf, 0xff, 0xff00, 0xff0000, 0x82004b, 0xff7700, 0xffff00, 0xed80ed, 0xa0bfdf, 0xff, 0xff00, 0xff0000, 0x82004b, 0xff7700, 0xffff00 };//} Object//} Scene ///* $Id: MeshCross.java.in,v 1.2 2004/03/25 00:18:16 rzr Exp $ *///Scene { //Object { // Named object: "77V_132F_@_www.rzr.online.frpublic static final int mesh_cross_nv=77; public static final int mesh_cross_nf=132;public static final int mesh_cross_vv[][]= { { 0, 0, 11585 }, { 1390, 1390, 5329 }, { -1274, 1390, 5329 }, { -1274, -1390, 5329 }, { 1390, -1390, 5329 }, { -463, -463, 6256 }, { 463, -463, 6256 }, { 463, 463, 6256 }, { -463, 463, 6256 }, { -463, 463, 463 }, { -463, -463, 463 }, { 463, 463, 463 }, { 463, -463, 463 }, { 0, 0, -11585 }, { -1274, 1390, -5329 }, { 1390, 1390, -5329 }, { 1390, -1390, -5329 }, { -1274, -1390, -5329 }, { 463, -463, -6256 }, { -463, -463, -6256 }, { -463, 463, -6256 }, { 463, 463, -6256 }, { 463, 463, -463 }, { 463, -463, -463 }, { -463, 463, -463 }, { -463, -463, -463 }, { 0, 11585, 0 }, { 1390, 5329, -1390 }, { -1274, 5329, -1390 }, { -1274, 5329, 1390 }, { 1390, 5329, 1390 }, { -463, 6256, 463 }, { 463, 6256, 463 }, { 463, 6256, -463 }, { -463, 6256, -463 }, { -463, 463, -463 }, { -463, 463, 463 }, { 463, 463, -463 }, { 463, 463, 463 }, { 0, -11585, 0 }, { -1274, -5329, -1390 }, { 1390, -5329, -1390 }, { 1390, -5329, 1390 }, { -1274, -5329, 1390 }, { 463, -6256, 463 }, { -463, -6256, 463 }, { -463, -6256, -463 }, { 463, -6256, -463 }, { 463, -463, -463 }, { 463, -463, 463 }, { -463, -463, -463 }, { -463, -463, 463 }, { -11585, 0, 0 }, { -5329, 1390, -1390 }, { -5329, -1390, -1390 }, { -5329, -1390, 1390 }, { -5329, 1390, 1390 }, { -6256, -463, 463 }, { -6256, 463, 463 }, { -6256, 463, -463 }, { -6256, -463, -463 }, { -463, -463, -463 }, { -463, -463, 463 }, { -463, 463, -463 }, { -463, 463, 463 }, { 11585, 0, 0 }, { 5329, -1390, -1390 }, { 5329, 1390, -1390 }, { 5329, 1390, 1390 }, { 5329, -1390, 1390 }, { 6256, 463, 463 }, { 6256, -463, 463 }, { 6256, -463, -463 }, { 6256, 463, -463 }, { 463, 463, -463 }, { 463, 463, 463 }, { 463, -463, 463 }};public static final int mesh_cross_vf[][]= { { 75, 74, 48 }, { 75, 48, 76 }, { 75, 76, 71 }, { 71, 70, 75 }, { 74, 73, 72 }, { 72, 48, 74 }, { 71, 76, 48 }, { 71, 48, 72 }, { 74, 75, 70 }, { 70, 73, 74 }, { 73, 70, 68 }, { 73, 68, 67 }, { 67, 72, 73 }, { 72, 67, 66 }, { 72, 66, 71 }, { 71, 66, 69 }, { 70, 71, 69 }, { 70, 69, 68 }, { 65, 69, 66 }, { 68, 69, 65 }, { 65, 67, 68 }, { 65, 66, 67 }, { 62, 61, 63 }, { 62, 63, 64 }, { 62, 64, 58 }, { 58, 57, 62 }, { 61, 60, 59 }, { 59, 63, 61 }, { 58, 64, 63 }, { 58, 63, 59 }, { 61, 62, 57 }, { 57, 60, 61 }, { 60, 57, 55 }, { 60, 55, 54 }, { 54, 59, 60 }, { 59, 54, 53 }, { 59, 53, 58 }, { 58, 53, 56 }, { 57, 58, 56 }, { 57, 56, 55 }, { 52, 56, 53 }, { 55, 56, 52 }, { 52, 54, 55 }, { 52, 53, 54 }, { 49, 48, 50 }, { 49, 50, 51 }, { 49, 51, 45 }, { 45, 44, 49 }, { 48, 47, 46 }, { 46, 50, 48 }, { 45, 51, 50 }, { 45, 50, 46 }, { 48, 49, 44 }, { 44, 47, 48 }, { 47, 44, 42 }, { 47, 42, 41 }, { 41, 46, 47 }, { 46, 41, 40 }, { 46, 40, 45 }, { 45, 40, 43 }, { 44, 45, 43 }, { 44, 43, 42 }, { 39, 43, 40 }, { 42, 43, 39 }, { 39, 41, 42 }, { 39, 40, 41 }, { 36, 35, 37 }, { 36, 37, 38 }, { 36, 38, 32 }, { 32, 31, 36 }, { 35, 34, 33 }, { 33, 37, 35 }, { 32, 38, 37 }, { 32, 37, 33 }, { 35, 36, 31 }, { 31, 34, 35 }, { 34, 31, 29 }, { 34, 29, 28 }, { 28, 33, 34 }, { 33, 28, 27 }, { 33, 27, 32 }, { 32, 27, 30 }, { 31, 32, 30 }, { 31, 30, 29 }, { 26, 30, 27 }, { 29, 30, 26 }, { 26, 28, 29 }, { 26, 27, 28 }, { 23, 22, 24 }, { 23, 24, 25 }, { 23, 25, 19 }, { 19, 18, 23 }, { 22, 21, 20 }, { 20, 24, 22 }, { 19, 25, 24 }, { 19, 24, 20 }, { 22, 23, 18 }, { 18, 21, 22 }, { 21, 18, 16 }, { 21, 16, 15 }, { 15, 20, 21 }, { 20, 15, 14 }, { 20, 14, 19 }, { 19, 14, 17 }, { 18, 19, 17 }, { 18, 17, 16 }, { 13, 17, 14 }, { 16, 17, 13 }, { 13, 15, 16 }, { 13, 14, 15 }, { 10, 9, 11 }, { 10, 11, 12 }, { 10, 12, 6 }, { 6, 5, 10 }, { 9, 8, 7 }, { 7, 11, 9 }, { 6, 12, 11 }, { 6, 11, 7 }, { 9, 10, 5 }, { 5, 8, 9 }, { 8, 5, 3 }, { 8, 3, 2 }, { 2, 7, 8 }, { 7, 2, 1 }, { 7, 1, 6 }, { 6, 1, 4 }, { 5, 6, 4 }, { 5, 4, 3 }, { 0, 4, 1 }, { 3, 4, 0 }, { 0, 2, 3 }, { 0, 1, 2 }};//} Object//} Scene ////Scene { //Object { // Named object: "146V_250F_@_www.rzr.online.frpublic static final int mesh_tux_nv=146; public static final int mesh_tux_nf=250;public static final int mesh_tux_vv[][]= { { -4595, -10571, 1143 }, { -1754, -10571, 1143 }, { 1560, -11518, 7203 }, { -1754, -11518, 1143 }, { -3174, -11518, 8718 }, { -4595, -11518, 1143 }, { -7909, -11518, 7203 }, { 2055, -10638, 1138 }, { 4895, -10638, 1138 }, { 8209, -11585, 7198 }, { 4895, -11585, 1138 }, { 3475, -11585, 8713 }, { 2055, -11585, 1138 }, { -1259, -11585, 7198 }, { -384, -11518, -564 }, { -10640, -4959, -564 }, { -8652, -1645, -2457 }, { -8652, -1645, 1330 }, { -6001, 1006, -2457 }, { -6001, 1006, 1330 }, { -4012, 1669, -2457 }, { -4012, 1669, 1330 }, { 10640, -5325, -564 }, { 8652, -2011, -2457 }, { 8652, -2011, 1330 }, { 6001, 640, -2457 }, { 6001, 640, 1330 }, { 4012, 1303, -2457 }, { 4012, 1303, 1330 }, { 2404, -11329, 1228 }, { 993, -11329, 2451 }, { -855, -11329, 2717 }, { -2554, -11329, 1941 }, { -3563, -11329, 370 }, { -3563, -11329, -1497 }, { -2554, -11329, -3068 }, { -855, -11329, -3844 }, { 993, -11329, -3578 }, { 2404, -11329, -2355 }, { 2930, -11329, -564 }, { 5591, -9435, 3276 }, { 2567, -9435, 5896 }, { -1394, -9435, 6465 }, { -5034, -9435, 4803 }, { -7197, -9435, 1437 }, { -7197, -9435, -2564 }, { -5034, -9435, -5931 }, { -1394, -9435, -7593 }, { 2567, -9435, -7023 }, { 5591, -9435, -4403 }, { 6718, -9435, -564 }, { 6467, -5932, 3839 }, { 2999, -5932, 6843 }, { -1542, -5932, 7496 }, { -5716, -5932, 5590 }, { -8197, -5932, 1730 }, { -8197, -5932, -2858 }, { -5716, -5932, -6718 }, { -1542, -5932, -8624 }, { 2999, -5932, -7971 }, { 6467, -5932, -4966 }, { 7759, -5932, -564 }, { 6546, -3659, 3890 }, { 3039, -3659, 6929 }, { -1556, -3659, 7590 }, { -5778, -3659, 5662 }, { -8287, -3659, 1757 }, { -8287, -3659, -2885 }, { -5778, -3659, -6789 }, { -1556, -3659, -8718 }, { 3039, -3659, -8057 }, { 6546, -3659, -5017 }, { 7854, -3659, -564 }, { 5830, -1292, 3429 }, { 2685, -1292, 6154 }, { -1435, -1292, 6747 }, { -5220, -1292, 5018 }, { -7470, -1292, 1517 }, { -7470, -1292, -2644 }, { -5220, -1292, -6145 }, { -1435, -1292, -7874 }, { 2685, -1292, -7282 }, { 5830, -1292, -4557 }, { 7002, -1292, -564 }, { 4475, 1075, 2559 }, { 2016, 1075, 4690 }, { -1205, 1075, 5153 }, { -4166, 1075, 3801 }, { -5925, 1075, 1063 }, { -5925, 1075, -2191 }, { -4166, 1075, -4929 }, { -1205, 1075, -6281 }, { 2016, 1075, -5818 }, { 4475, 1075, -3686 }, { 5392, 1075, -564 }, { 3121, 3442, 1689 }, { 1347, 3442, 3226 }, { -976, 3442, 3560 }, { -3112, 3442, 2585 }, { -4381, 3442, 610 }, { -4381, 3442, -1737 }, { -3112, 3442, -3712 }, { -976, 3442, -4687 }, { 1347, 3442, -4353 }, { 3121, 3442, -2816 }, { 3783, 3442, -564 }, { 2882, 9029, 1535 }, { 1229, 9029, 2968 }, { -936, 9029, 3279 }, { -2926, 9029, 2370 }, { -4108, 9029, 530 }, { -4108, 9029, -1657 }, { -2926, 9029, -3498 }, { -936, 9029, -4406 }, { 1229, 9029, -4095 }, { 2882, 9029, -2663 }, { 3499, 9029, -564 }, { 1847, 10828, 870 }, { 718, 10828, 1848 }, { -761, 10828, 2060 }, { -2120, 10828, 1440 }, { -2927, 10828, 183 }, { -2927, 10828, -1311 }, { -2120, 10828, -2567 }, { -761, 10828, -3188 }, { 718, 10828, -2975 }, { 2268, 10828, -564 }, { -384, 11585, -564 }, { 1847, 10828, -1997 }, { 1286, 3991, 2277 }, { -857, 2931, 2277 }, { -2999, 3991, 2277 }, { -3887, 5052, 2277 }, { -2999, 6112, 2277 }, { -857, 7173, 2277 }, { 1286, 6112, 2277 }, { 2173, 5052, 2277 }, { 214, 4787, 6538 }, { -857, 4522, 6538 }, { -1928, 4787, 6538 }, { -2372, 5052, 6538 }, { -1928, 5317, 6538 }, { -857, 5582, 6538 }, { 658, 5052, 6538 }, { -857, 5052, 7011 }, { 214, 5317, 6538 }};public static final int mesh_tux_vf[][]= { { 145, 144, 143 }, { 142, 144, 145 }, { 141, 144, 142 }, { 140, 144, 141 }, { 139, 144, 140 }, { 138, 144, 139 }, { 137, 144, 138 }, { 143, 144, 137 }, { 143, 136, 145 }, { 135, 145, 136 }, { 145, 135, 142 }, { 134, 142, 135 }, { 142, 134, 141 }, { 133, 141, 134 }, { 141, 133, 140 }, { 132, 140, 133 }, { 140, 132, 139 }, { 131, 139, 132 }, { 139, 131, 138 }, { 130, 138, 131 }, { 138, 130, 137 }, { 129, 137, 130 }, { 137, 129, 143 }, { 136, 143, 129 }, { 128, 127, 126 }, { 125, 127, 128 }, { 124, 127, 125 }, { 123, 127, 124 }, { 122, 127, 123 }, { 121, 127, 122 }, { 120, 127, 121 }, { 119, 127, 120 }, { 118, 127, 119 }, { 117, 127, 118 }, { 126, 127, 117 }, { 126, 116, 128 }, { 115, 128, 116 }, { 128, 115, 125 }, { 114, 125, 115 }, { 125, 114, 124 }, { 113, 124, 114 }, { 124, 113, 123 }, { 112, 123, 113 }, { 123, 112, 122 }, { 111, 122, 112 }, { 122, 111, 121 }, { 110, 121, 111 }, { 121, 110, 120 }, { 109, 120, 110 }, { 120, 109, 119 }, { 108, 119, 109 }, { 119, 108, 118 }, { 107, 118, 108 }, { 118, 107, 117 }, { 106, 117, 107 }, { 117, 106, 126 }, { 116, 126, 106 }, { 116, 105, 115 }, { 104, 115, 105 }, { 115, 104, 114 }, { 103, 114, 104 }, { 114, 103, 113 }, { 102, 113, 103 }, { 113, 102, 112 }, { 101, 112, 102 }, { 112, 101, 111 }, { 100, 111, 101 }, { 111, 100, 110 }, { 99, 110, 100 }, { 110, 99, 109 }, { 98, 109, 99 }, { 109, 98, 108 }, { 97, 108, 98 }, { 108, 97, 107 }, { 96, 107, 97 }, { 107, 96, 106 }, { 95, 106, 96 }, { 106, 95, 116 }, { 105, 116, 95 }, { 105, 94, 104 }, { 93, 104, 94 }, { 104, 93, 103 }, { 92, 103, 93 }, { 103, 92, 102 }, { 91, 102, 92 }, { 102, 91, 101 }, { 90, 101, 91 }, { 101, 90, 100 }, { 89, 100, 90 }, { 100, 89, 99 }, { 88, 99, 89 }, { 99, 88, 98 }, { 87, 98, 88 }, { 98, 87, 97 }, { 86, 97, 87 }, { 97, 86, 96 }, { 85, 96, 86 }, { 96, 85, 95 }, { 84, 95, 85 }, { 95, 84, 105 }, { 94, 105, 84 }, { 94, 83, 93 }, { 82, 93, 83 }, { 93, 82, 92 }, { 81, 92, 82 }, { 92, 81, 91 }, { 80, 91, 81 }, { 91, 80, 90 }, { 79, 90, 80 }, { 90, 79, 89 }, { 78, 89, 79 }, { 89, 78, 88 }, { 77, 88, 78 }, { 88, 77, 87 }, { 76, 87, 77 }, { 87, 76, 86 }, { 75, 86, 76 }, { 86, 75, 85 }, { 74, 85, 75 }, { 85, 74, 84 }, { 73, 84, 74 }, { 84, 73, 94 }, { 83, 94, 73 }, { 83, 72, 82 }, { 71, 82, 72 }, { 82, 71, 81 }, { 70, 81, 71 }, { 81, 70, 80 }, { 69, 80, 70 }, { 80, 69, 79 }, { 68, 79, 69 }, { 79, 68, 78 }, { 67, 78, 68 }, { 78, 67, 77 }, { 66, 77, 67 }, { 77, 66, 76 }, { 65, 76, 66 }, { 76, 65, 75 }, { 64, 75, 65 }, { 75, 64, 74 }, { 63, 74, 64 }, { 74, 63, 73 }, { 62, 73, 63 }, { 73, 62, 83 }, { 72, 83, 62 }, { 72, 61, 71 }, { 60, 71, 61 }, { 71, 60, 70 }, { 59, 70, 60 }, { 70, 59, 69 }, { 58, 69, 59 }, { 69, 58, 68 }, { 57, 68, 58 }, { 68, 57, 67 }, { 56, 67, 57 }, { 67, 56, 66 }, { 55, 66, 56 }, { 66, 55, 65 }, { 54, 65, 55 }, { 65, 54, 64 }, { 53, 64, 54 }, { 64, 53, 63 }, { 52, 63, 53 }, { 63, 52, 62 }, { 51, 62, 52 }, { 62, 51, 72 }, { 61, 72, 51 }, { 61, 50, 60 }, { 49, 60, 50 }, { 60, 49, 59 }, { 48, 59, 49 }, { 59, 48, 58 }, { 47, 58, 48 }, { 58, 47, 57 }, { 46, 57, 47 }, { 57, 46, 56 }, { 45, 56, 46 }, { 56, 45, 55 }, { 44, 55, 45 }, { 55, 44, 54 }, { 43, 54, 44 }, { 54, 43, 53 }, { 42, 53, 43 }, { 53, 42, 52 }, { 41, 52, 42 }, { 52, 41, 51 }, { 40, 51, 41 }, { 51, 40, 61 }, { 50, 61, 40 }, { 50, 39, 49 }, { 38, 49, 39 }, { 49, 38, 48 }, { 37, 48, 38 }, { 48, 37, 47 }, { 36, 47, 37 }, { 47, 36, 46 }, { 35, 46, 36 }, { 46, 35, 45 }, { 34, 45, 35 }, { 45, 34, 44 }, { 33, 44, 34 }, { 44, 33, 43 }, { 32, 43, 33 }, { 43, 32, 42 }, { 31, 42, 32 }, { 42, 31, 41 }, { 30, 41, 31 }, { 41, 30, 40 }, { 29, 40, 30 }, { 40, 29, 50 }, { 39, 50, 29 }, { 28, 27, 26 }, { 25, 26, 27 }, { 26, 25, 24 }, { 23, 24, 25 }, { 24, 23, 22 }, { 22, 23, 24 }, { 25, 24, 23 }, { 24, 25, 26 }, { 21, 20, 19 }, { 18, 19, 20 }, { 19, 18, 17 }, { 16, 17, 18 }, { 17, 16, 15 }, { 15, 16, 17 }, { 18, 17, 16 }, { 17, 18, 19 }, { 39, 14, 38 }, { 38, 14, 37 }, { 37, 14, 36 }, { 36, 14, 35 }, { 35, 14, 34 }, { 34, 14, 33 }, { 33, 14, 32 }, { 32, 14, 31 }, { 31, 14, 30 }, { 30, 14, 29 }, { 29, 14, 39 }, { 13, 12, 11 }, { 10, 11, 12 }, { 11, 10, 9 }, { 9, 8, 11 }, { 7, 11, 8 }, { 11, 7, 13 }, { 6, 5, 4 }, { 3, 4, 5 }, { 4, 3, 2 }, { 2, 1, 4 }, { 0, 4, 1 }, { 4, 0, 6 }};public static final int mesh_tux_vc[]= { 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xE0E0E0, 0xE0E0E0, 0x444444, 0xE0E0E0, 0x444444, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0xE0E0E0, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0x303030, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00, 0xffff00 };//} Object//} Scene //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ static int init=0; public int w_ = 160; //128; public int h_ = w_; public int hw_ = h_ * w_; /* center of screen in pixels */ int[] screen = { 0 , 0 , 0}; static final int scale = 2; //cube=2 2=2^2=4 static int screenscale = 12; /** rotation effect */ public int rx_ = -1; // -1 1 0 public int ry_ = -1; public int rz_ = 0; public int updated=0; //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /** rendering mode */ public int mode=0; static final String vmode[] = { "demo" , "dots", "wire" }; static int shape = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -