亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? java-codes.txt

?? 3D魔方的小游戲
?? TXT
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
                colors[i]=Block.mianColor[0];
            }
        }

        for(i=0;i<14;i++)
        {
            if(i==0)
            {
                vert[27+i]=new Point3f(zuoBiaoZhouSmallDingDian,0.0f,0.0f);
                colors[27+i]=Block.mianColor[0];
            }
            else
            {
                z1=(float)(0.005f*Math.cos(i*2*Math.PI/12));
                x1=zuoBiaoZhouSmallWeiDian ;
                y1=(float)(0.005f*Math.sin(i*2*Math.PI/12));
                vert[27+i]=new Point3f(x1,y1,z1);
                colors[27+i]=Block.mianColor[1];
            }
        }


        int count[]=new int[2];
        count[0]=27 ;
        count[1]=14 ;

        TriangleFanArray tri=new TriangleFanArray(
        vert.length,
        TriangleFanArray.COORDINATES|TriangleStripArray.COLOR_3,
        count
        );
        tri.setCoordinates(0,vert);
        tri.setColors(0,colors);
        Appearance app=new Appearance();

        PolygonAttributes polyAttrib=new PolygonAttributes();
        polyAttrib.setCullFace(PolygonAttributes.CULL_NONE);
        //polyAttrib.setPolygonMode(PolygonAttributes.POLYGON_LINE);
        app.setPolygonAttributes(polyAttrib);

        Shape3D shape=new Shape3D(tri,app);

        //System.out.print("zuoBiaoZhuSmallX 創(chuàng)建 完成");

        trans.addChild(shape);


        //到這里,小坐標(biāo)軸對(duì)象創(chuàng)建完成


    }
    public static  void  zuoBiaoZhuSmallYShape3D(TransformGroup trans)
    {


        //創(chuàng)建小坐標(biāo)軸對(duì)象

        int i ;
        float x1,x2,y1,y2,z1,z2 ;

        Point3f[]vert=new Point3f[41];
        Color3f[]colors=new Color3f[41];
        for(i=0;i<27;i++)
        {
            if(i==0)
            {
                vert[i]=new Point3f(0.0f,zuoBiaoZhouSmallDingDian,0.0f);
                colors[i]=Block.mianColor[2];
            }
            else
            {
                x1=(float)(zuoBiaoZhouSmallDingXi*Math.cos(i*2*Math.PI/25));
                y1=zuoBiaoZhouSmallDingChang ;
                z1=(float)(zuoBiaoZhouSmallDingXi*Math.sin(i*2*Math.PI/25));
                vert[i]=new Point3f(x1,y1,z1);
                colors[i]=Block.mianColor[2];
            }
        }

        for(i=0;i<14;i++)
        {
            if(i==0)
            {
                vert[27+i]=new Point3f(0.0f,zuoBiaoZhouSmallDingDian,0.0f);
                colors[27+i]=Block.mianColor[2];
            }
            else
            {
                x1=(float)(0.005f*Math.cos(i*2*Math.PI/12));
                y1=zuoBiaoZhouSmallWeiDian ;
                z1=(float)(0.005f*Math.sin(i*2*Math.PI/12));
                vert[27+i]=new Point3f(x1,y1,z1);
                colors[27+i]=Block.mianColor[3];
            }
        }
        int count[]=new int[2];
        count[0]=27 ;
        count[1]=14 ;

        TriangleFanArray tri=new TriangleFanArray(
        vert.length,
        TriangleFanArray.COORDINATES|TriangleStripArray.COLOR_3,
        count
        );
        tri.setCoordinates(0,vert);
        tri.setColors(0,colors);
        Appearance app=new Appearance();

        PolygonAttributes polyAttrib=new PolygonAttributes();
        polyAttrib.setCullFace(PolygonAttributes.CULL_NONE);
        //polyAttrib.setPolygonMode(PolygonAttributes.POLYGON_LINE);
        app.setPolygonAttributes(polyAttrib);

        Shape3D shape=new Shape3D(tri,app);
        //System.out.print("zuoBiaoZhuSmallY 創(chuàng)建 完成");

        trans.addChild(shape);


        //到這里,小坐標(biāo)軸對(duì)象創(chuàng)建完成


    }

    public static  void  zuoBiaoZhuSmallZShape3D(TransformGroup trans)
    {


        //創(chuàng)建小坐標(biāo)軸對(duì)象

        int i ;
        float x1,x2,y1,y2,z1,z2 ;

        Point3f[]vert=new Point3f[41];
        Color3f[]colors=new Color3f[41];
        for(i=0;i<27;i++)
        {
            if(i==0)
            {
                vert[i]=new Point3f(0.0f,0.0f,zuoBiaoZhouSmallDingDian);
                colors[i]=Block.mianColor[4];
            }
            else
            {
                y1=(float)(zuoBiaoZhouSmallDingXi*Math.cos(i*2*Math.PI/25));
                z1=zuoBiaoZhouSmallDingChang ;
                x1=(float)(zuoBiaoZhouSmallDingXi*Math.sin(i*2*Math.PI/25));
                vert[i]=new Point3f(x1,y1,z1);
                colors[i]=Block.mianColor[4];
            }
        }

        for(i=0;i<14;i++)
        {
            if(i==0)
            {
                vert[27+i]=new Point3f(0.0f,0.0f,zuoBiaoZhouSmallDingDian);
                colors[27+i]=Block.mianColor[4];
            }
            else
            {
                y1=(float)(0.005f*Math.cos(i*2*Math.PI/12));
                z1=zuoBiaoZhouSmallWeiDian ;
                x1=(float)(0.005f*Math.sin(i*2*Math.PI/12));
                vert[27+i]=new Point3f(x1,y1,z1);
                colors[27+i]=Block.mianColor[5];
            }
        }
        int count[]=new int[2];
        count[0]=27 ;
        count[1]=14 ;

        TriangleFanArray tri=new TriangleFanArray(
        vert.length,
        TriangleFanArray.COORDINATES|TriangleStripArray.COLOR_3,
        count
        );
        tri.setCoordinates(0,vert);
        tri.setColors(0,colors);


        Appearance app=new Appearance();

        PolygonAttributes polyAttrib=new PolygonAttributes();
        polyAttrib.setCullFace(PolygonAttributes.CULL_NONE);
        //polyAttrib.setPolygonMode(PolygonAttributes.POLYGON_LINE);
        app.setPolygonAttributes(polyAttrib);

        Shape3D shape=new Shape3D(tri,app);

 

        //System.out.print("zuoBiaoZhuSmallZ 創(chuàng)建 完成");

        trans.addChild(shape);


        //到這里,小坐標(biāo)軸對(duì)象創(chuàng)建完成


    }
       public static Shape3D shapeMaker(Component observer,String filename,Point3f[] p)
       {

       //用材質(zhì),四頂點(diǎn)數(shù)組創(chuàng)建一個(gè)四邊面,需要applet對(duì)象observer


            //創(chuàng)建貼圖和外觀
            TextureLoader loader=new  TextureLoader(filename,observer);
            ImageComponent2D myImage=loader.getImage();
            Texture myTex=loader.getTexture();
            myTex.setImage(0,myImage);
            Appearance appear=new Appearance();
            appear.setTexture(myTex);

            //四邊形對(duì)象
            //QuadArray tri=new QuadArray(dingdian.length,QuadArray.COORDINATES|QuadArray.COLOR_3|QuadArray.TEXTURE_COORDINATE_2);
QuadArray tri=new QuadArray(4,QuadArray.COORDINATES|QuadArray.TEXTURE_COORDINATE_2);//GeometryArray
            tri.setCoordinates(0,p);
            //tri.setColors(0,color);

            //給四邊形對(duì)象配材質(zhì)
            TexCoord2f texCoords=new TexCoord2f();//材質(zhì)坐標(biāo)
            texCoords.set(0.0f,1.0f);//取左下角
            tri.setTextureCoordinate(0,0,texCoords);//為左上角
            texCoords.set(0.0f,0.0f);//
            tri.setTextureCoordinate(0,1,texCoords);//
            texCoords.set(1.0f,0.0f);//
            tri.setTextureCoordinate(0,2,texCoords);//
            texCoords.set(1.0f,1.0f);//
            tri.setTextureCoordinate(0,3,texCoords);//

            Shape3D shape=new Shape3D(tri,appear);
        return shape ;

        //到這里,6個(gè)面對(duì)象創(chuàng)建完成
    }
    public static void addText3DDonghua(TransformGroup parentTrg,String textString,Point3f myPoint3f,float sl,Color3f ambientColor,int donghua)
    {
     //s1定scale,myPoint3f定位置,daxiao是大小
     //字的左下角默認(rèn)左下角在中點(diǎn),當(dāng)tl=0.1時(shí),要向左移10才到左端

     //自定義trg
        Transform3D trgtra=new Transform3D();
        TransformGroup trg=new TransformGroup(trgtra);
        trg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
        trg.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
        //trg.setCapability(TransformGroup.ENABLE_PICK_REPORTING);

     double tessellation=-0.0 ;
     String fontName="vadana" ;
        // Create the root of the branch graph
        // Create a Transformgroup to scale all objects so they
        // appear in the scene.
        TransformGroup objScale=new TransformGroup();
        Transform3D t3d=new Transform3D();
        // Assuming uniform size chars, set scale to fit string in view

        t3d.setScale(sl);

        objScale.setTransform(t3d);
        trg.addChild(objScale);

        // Create the transform group node and initialize it to the
        // identity.  Enable the TRANSFORM_WRITE capability so that
        // our behavior code can modify it at runtime.  Add it to the
        // root of the subgraph.
        TransformGroup objTrans=new TransformGroup();
        objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
        objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);

        objScale.addChild(objTrans);


        Font3D f3d ;
        if(tessellation>0.0)
        {
            f3d=new Font3D(new Font(fontName,Font.PLAIN,2),
            tessellation,
            new FontExtrusion());
        }
        else
        {
            f3d=new Font3D(new Font(fontName,Font.PLAIN,2),
            new FontExtrusion());
        }
        Text3D txt=new Text3D(f3d,textString,
        myPoint3f);
        Shape3D sh=new Shape3D();
        Appearance app=new Appearance();
        Material mm=new Material();
        mm.setLightingEnable(true);
        app.setMaterial(mm);
        sh.setGeometry(txt);
        sh.setAppearance(app);
        objTrans.addChild(sh);

        BoundingSphere bounds=
        new BoundingSphere(new Point3d(0.0,0.0,0.0),100.0);

        // Set up the ambient light

        AmbientLight ambientLightNode=new AmbientLight(ambientColor);
        ambientLightNode.setInfluencingBounds(bounds);
        trg.addChild(ambientLightNode);

        // Set up the directional lights
        Color3f light1Color=new Color3f(1.0f,1.0f,0.9f);
        Vector3f light1Direction=new Vector3f(1.0f,1.0f,1.0f);
        Color3f light2Color=new Color3f(1.0f,1.0f,0.9f);
        Vector3f light2Direction=new Vector3f(-1.0f,-1.0f,-1.0f);

        DirectionalLight light1
        =new DirectionalLight(light1Color,light1Direction);
        light1.setInfluencingBounds(bounds);
        trg.addChild(light1);

        DirectionalLight light2
        =new DirectionalLight(light2Color,light2Direction);
        light2.setInfluencingBounds(bounds);
        trg.addChild(light2);

if(donghua==1)
{
        //給trg(自定義),加上旋轉(zhuǎn)插件
        Alpha alpha1=new Alpha(-1,Alpha.INCREASING_ENABLE|Alpha.DECREASING_ENABLE,0,0,5000,300,100000,5000,300,100000);
        RotationInterpolator myRoTate=new RotationInterpolator(alpha1,trg,trgtra,0.0f,(float)Math.PI*30);
myRoTate.setSchedulingBounds(bounds);
trg.addChild(myRoTate);
trgtra.rotZ(Math.PI/2);
trg.setTransform(trgtra);
System.out.println("\n文本 動(dòng)畫(huà) 方案:"+donghua);
}
parentTrg.addChild(trg);
    }

}
//由于java數(shù)組的局限,整個(gè)程序使用0,1,2空間,為了方便計(jì)算,計(jì)算時(shí)要進(jìn)行坐標(biāo)變換

public class MoFang
{
    //該類含魔方的數(shù)據(jù)表示,blockArray為計(jì)算單步必需的,Position為便于人的視覺(jué)(用于操作和
    //顯示輸出)而添加的輔助結(jié)構(gòu),實(shí)際上,我們可以總是從blockArray算出來(lái),但計(jì)算量大得驚人
    public static Block[][][]blockArray=new Block[3][3][3];
    //設(shè)魔方27塊
    public static Position[][][]positionArray=new Position[3][3][3];
    //魔方27個(gè)絕對(duì)位置

    //用于處理對(duì)魔方的操作,共27種操作
    //doType:'X','Y','Z'
    //Floor:-1,0,1
    //totateArg:90 180 -90
    public static void doIt(char doType,int Floor,int totateArg)
    {
        System.out.println("\n處理操作:"+doType);
        System.out.println("層數(shù):"+(Floor-1));
        System.out.println("角度:"+totateArg+"\n");

                   if(!Block.closeDonghua)  //動(dòng)畫(huà)打開(kāi)才等待
{

  while(Block.yunXingThread!=0)
  {System.out.print('.');

  }


}
        switch(doType)
        {
            case 'Z' :
            for(int i=0;i<=2;i++)
            for(int j=0;j<=2;j++)
            //for(int k=0;k<=2;k++)
            {
             if(Block.closeDonghua)//動(dòng)畫(huà)關(guān)閉才變換中間塊
{
                  if(i==1&&j==1)
                {
                    continue ;
                }
}

                int changBlockX=positionArray[i][j][Floor].x ;
                int changBlockY=positionArray[i][j][Floor].y ;
                int changBlockZ=positionArray[i][j][Floor].z ;
                Block changBlock=blockArray[changBlockX][changBlockY][changBlockZ];
                changBlock.xyzChange('Z',totateArg);

            }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区观看| 国产一区二区三区香蕉| wwwwww.欧美系列| 91在线porny国产在线看| 日韩中文字幕麻豆| 国产精品国产三级国产aⅴ原创| 在线观看欧美日本| 国产在线视频精品一区| 亚洲激情中文1区| 久久久久久久久久美女| 欧美日韩高清在线播放| thepron国产精品| 极品少妇xxxx精品少妇| 亚洲一二三四在线观看| 中文字幕成人网| 日韩西西人体444www| 欧美曰成人黄网| 成人动漫一区二区在线| 精品一区二区综合| 日韩国产欧美在线播放| 亚洲午夜激情网站| 成人欧美一区二区三区在线播放| 精品久久久三级丝袜| 欧美日韩国产免费一区二区| 97精品电影院| 国产黑丝在线一区二区三区| 奇米精品一区二区三区在线观看| 亚洲综合在线电影| 亚洲三级理论片| 国产精品久久午夜夜伦鲁鲁| 久久蜜桃香蕉精品一区二区三区| 日韩美一区二区三区| 欧美高清一级片在线| 欧洲一区二区三区在线| 91国产丝袜在线播放| 色综合久久中文综合久久97| eeuss鲁片一区二区三区| 国产精品性做久久久久久| 久草精品在线观看| 美国三级日本三级久久99| 日韩av中文字幕一区二区三区| 亚洲一二三专区| 一区二区三区美女视频| 亚洲黄色小视频| 一区二区欧美视频| 亚洲自拍欧美精品| 亚洲综合小说图片| 午夜精品久久久久久| 丝袜国产日韩另类美女| 日本不卡免费在线视频| 免费观看一级特黄欧美大片| 美女视频黄免费的久久 | 国产欧美视频一区二区| 26uuuu精品一区二区| 亚洲精品一区二区三区影院| 欧美精品一区二区久久久| 久久久亚洲精华液精华液精华液 | 偷拍日韩校园综合在线| 亚洲成av人影院| 日韩精品久久久久久| 免费观看在线综合色| 国模套图日韩精品一区二区| 丁香六月久久综合狠狠色| 99久免费精品视频在线观看| 色呦呦国产精品| 精品视频全国免费看| 欧美国产丝袜视频| 亚洲欧美日韩成人高清在线一区| 亚洲在线视频免费观看| 免费高清在线视频一区·| 国产精品99久久久久久久vr | 国产精品毛片无遮挡高清| 中文字幕一区二区三区色视频| 亚洲另类中文字| 日日夜夜精品视频天天综合网| 毛片不卡一区二区| 成人美女在线观看| 欧美性三三影院| 久久久亚洲欧洲日产国码αv| 亚洲欧美日韩综合aⅴ视频| 亚洲第一激情av| 国产伦精一区二区三区| 欧美亚一区二区| 精品久久久网站| 亚洲精品视频一区| 麻豆国产一区二区| 北条麻妃国产九九精品视频| 欧美日韩国产精品成人| 国产日韩精品视频一区| 亚洲与欧洲av电影| 国产精品资源在线| 在线观看日韩毛片| 久久精品视频免费观看| 亚洲va国产va欧美va观看| 国产成人精品aa毛片| 欧美日韩1234| 国产精品免费网站在线观看| 青娱乐精品视频在线| av高清久久久| 精品国产免费人成电影在线观看四季 | 久久国产乱子精品免费女| www.欧美日韩国产在线| 日韩欧美亚洲国产精品字幕久久久| 日韩码欧中文字| 久久精品72免费观看| 欧美中文字幕一二三区视频| 国产日本欧美一区二区| 日本中文一区二区三区| 日本高清不卡视频| 国产视频一区在线观看| 蜜臀久久久99精品久久久久久| av男人天堂一区| 久久精品人人做人人综合 | 国产一区二区成人久久免费影院 | 亚洲一区二区三区视频在线播放| 国产不卡在线播放| 欧美大片日本大片免费观看| 亚洲成人免费看| 91亚洲国产成人精品一区二区三| 久久久综合激的五月天| 奇米色一区二区| 欧美欧美欧美欧美| 一区二区三区四区在线播放| 成人黄色片在线观看| 久久久久久久久久久99999| 免费xxxx性欧美18vr| 欧美日韩国产色站一区二区三区| 亚洲色图欧洲色图| 不卡欧美aaaaa| 国产欧美1区2区3区| 国产原创一区二区三区| 精品久久一区二区| 蜜桃一区二区三区在线| 欧美一区二区观看视频| 天天综合色天天| 欧美日韩在线三区| 亚洲午夜久久久久久久久久久| 日本国产一区二区| 亚洲综合一区二区| 欧美亚洲精品一区| 亚洲国产精品久久一线不卡| 在线观看日韩一区| 亚瑟在线精品视频| 欧美精品乱人伦久久久久久| 日韩精品成人一区二区在线| 欧美高清精品3d| 视频一区国产视频| 日韩视频在线你懂得| 久久精品国产网站| www国产精品av| 国产精品1区二区.| 中文天堂在线一区| 972aa.com艺术欧美| 亚洲精品精品亚洲| 欧美在线观看视频在线| 丝袜亚洲精品中文字幕一区| 91精品国产福利| 精品一区二区三区久久| 国产亚洲视频系列| 99精品热视频| 亚洲一区二区三区四区在线| 在线播放亚洲一区| 卡一卡二国产精品| 国产欧美日韩另类一区| 99精品一区二区三区| 亚洲国产综合人成综合网站| 欧美精品99久久久**| 国精品**一区二区三区在线蜜桃| 国产欧美日韩久久| 欧洲另类一二三四区| 日韩电影在线观看网站| 久久蜜臀精品av| 一本久久a久久免费精品不卡| 亚洲成人动漫一区| 26uuu国产一区二区三区| 成人ar影院免费观看视频| 亚洲国产三级在线| 精品久久久久99| 91影视在线播放| 免费成人性网站| 中文字幕色av一区二区三区| 欧美日韩久久一区| 国产精品99久| 亚洲18色成人| 国产女同互慰高潮91漫画| 欧美羞羞免费网站| 国产乱一区二区| 亚洲一卡二卡三卡四卡| 伊人婷婷欧美激情| 91精品国产色综合久久久蜜香臀| 成人免费视频免费观看| 水蜜桃久久夜色精品一区的特点| 国产日韩影视精品| 欧美三级日韩三级国产三级| 国产成人综合在线播放| 亚洲一二三区视频在线观看| 国产亚洲欧洲997久久综合 | 国产乱国产乱300精品| 亚洲香蕉伊在人在线观| 日本一区二区电影|