Package codechicken.lib.render.uv

Examples of codechicken.lib.render.uv.UV


        this.uv = uv;
    }
   
    public Vertex5(Vector3 vert, double u, double v)
    {
        this(vert, new UV(u, v));
    }
View Full Code Here


        this(x, y, z, u, v, 0);
    }

    public Vertex5(double x, double y, double z, double u, double v, int tex)
    {
        this(new Vector3(x, y, z), new UV(u, v));
    }
View Full Code Here

                }
            }
            if(uStart < uvs.size()) {
                p.println();
                for(int i = uStart; i < uvs.size(); i++) {
                    UV uv = uvs.get(i);
                    p.format("vt %s %s\n", clean(uv.u), clean(uv.v));
                }
            }
            if(nStart < normals.size()) {
                p.println();
View Full Code Here

     */
    public CCModel shrinkUVs(double d)
    {
        for(int k = 0; k < verts.length; k+=vp)
        {
            UV uv = new UV();
            for(int i = 0; i < vp; i++)
            {
                uv.add(verts[k+i].uv);
            }
            uv.multiply(1D/vp);
            for(int i = 0; i < vp; i++)
            {
                Vertex5 vert = verts[k+i];
                vert.uv.u += vert.uv.u < uv.u ? d : -d;
                vert.uv.v += vert.uv.v < uv.v ? d : -d;
View Full Code Here

    public Vector3 vec;
    public UV uv;
   
    public Vertex5()
    {
        this(new Vector3(), new UV());
    }
View Full Code Here

{
    public Vector3 vec;
    public UV uv;

    public Vertex5() {
        this(new Vector3(), new UV());
    }
View Full Code Here

        this.vec = vert;
        this.uv = uv;
    }

    public Vertex5(Vector3 vert, double u, double v) {
        this(vert, new UV(u, v));
    }
View Full Code Here

    public Vertex5(double x, double y, double z, double u, double v) {
        this(x, y, z, u, v, 0);
    }

    public Vertex5(double x, double y, double z, double u, double v, int tex) {
        this(new Vector3(x, y, z), new UV(u, v, tex));
    }
View Full Code Here

TOP

Related Classes of codechicken.lib.render.uv.UV

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.