Package crazypants.vecmath

Examples of crazypants.vecmath.Vertex


    Vertex[] z1 = createUnitCrossSection(0, 0, maxZ, numCoords + 1, 1);

    Vertex[] result = new Vertex[numCoords * 4];
    for (int i = 0; i < numCoords; i++) {
      int index = i * 4;
      result[index] = new Vertex(z0[i]);
      result[index + 1] = new Vertex(z0[i + 1]);
      result[index + 2] = new Vertex(z1[i + 1]);
      result[index + 3] = new Vertex(z1[i]);
    }
    return result;

  }
View Full Code Here


        for (Vertex c : corners) {
          addVecWithUV(c.xyz, c.uv.x, c.uv.y);
        }
        //back face
        for (int i = corners.size() - 1; i >= 0; i--) {
          Vertex c = corners.get(i);
          addVecWithUV(c.xyz, c.uv.x, c.uv.y);
        }
      }

    }
View Full Code Here

TOP

Related Classes of crazypants.vecmath.Vertex

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.