26272829303132
this.uv = uv; } public Vertex5(Vector3 vert, double u, double v) { this(vert, new UV(u, v)); }
36373839404142
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)); }
729730731732733734735736737738739
} } 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();
764765766767768769770771772773774775776777778779
*/ 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;
15161718192021
public Vector3 vec; public UV uv; public Vertex5() { this(new Vector3(), new UV()); }
14151617181920
{ public Vector3 vec; public UV uv; public Vertex5() { this(new Vector3(), new UV()); }
23242526272829
this.vec = vert; this.uv = uv; } public Vertex5(Vector3 vert, double u, double v) { this(vert, new UV(u, v)); }
31323334353637
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)); }