Searched refs:uvCoordinates (Results 1 – 4 of 4) sorted by relevance
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
D | UVProjectionGenerator.java | 35 float[] uvCoordinates = new float[positions.limit() / 3 * 2]; in flatProjection() local 37 uvCoordinates[j] = (positions.get(i) - min.x) / ext[0]; in flatProjection() 38 uvCoordinates[j + 1] = (positions.get(i + 1) - min.y) / ext[1]; in flatProjection() 41 return uvCoordinates; in flatProjection() 61 float[] uvCoordinates = new float[mesh.getTriangleCount() * 6];// 6 == 3 * 2 in cubeProjection() local 71 uvCoordinates[pointIndex++] = (triangle.get1().y - min.y) / ext[1]; in cubeProjection() 72 uvCoordinates[pointIndex++] = (triangle.get1().z - min.z) / ext[2]; in cubeProjection() 73 uvCoordinates[pointIndex++] = (triangle.get2().y - min.y) / ext[1]; in cubeProjection() 74 uvCoordinates[pointIndex++] = (triangle.get2().z - min.z) / ext[2]; in cubeProjection() 75 uvCoordinates[pointIndex++] = (triangle.get3().y - min.y) / ext[1]; in cubeProjection() [all …]
|
/external/jmonkeyengine/engine/src/test/jme3test/texture/ |
D | TestTexture3D.java | 50 float[] uvCoordinates = BufferUtils.getFloatArray(fb); in simpleInitApp() local 52 for (int i = 0; i < uvCoordinates.length; i += 3) { in simpleInitApp() 53 uvCoordinates[i] = (uvCoordinates[i] - min.x) / ext[0]; in simpleInitApp() 54 uvCoordinates[i + 1] = (uvCoordinates[i + 1] - min.y) / ext[1]; in simpleInitApp() 55 uvCoordinates[i + 2] = (uvCoordinates[i + 2] - min.z) / ext[2]; in simpleInitApp() 60 BufferUtils.createFloatBuffer(uvCoordinates)); in simpleInitApp()
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/meshes/ |
D | MeshContext.java | 23 private Map<Geometry, VertexBuffer> uvCoordinates = new HashMap<Geometry, VertexBuffer>(); field in MeshContext 92 uvCoordinates.put(geometry, vertexBuffer); in addUVCoordinates() 103 return uvCoordinates.get(geometry); in getUVCoordinates()
|
D | MeshHelper.java | 138 List<Vector2f> uvCoordinates = null; in toMesh() local 147 uvCoordinates = new ArrayList<Vector2f>(); in toMesh() 173 … uvCoordinates.add(new Vector2f(uvs.get(0, 0).floatValue(), uvs.get(0, 1).floatValue())); in toMesh() 174 … uvCoordinates.add(new Vector2f(uvs.get(1, 0).floatValue(), uvs.get(1, 1).floatValue())); in toMesh() 175 … uvCoordinates.add(new Vector2f(uvs.get(2, 0).floatValue(), uvs.get(2, 1).floatValue())); in toMesh() 219 … uvCoordinates.add(new Vector2f(uvs.get(0, 0).floatValue(), uvs.get(0, 1).floatValue())); in toMesh() 220 … uvCoordinates.add(new Vector2f(uvs.get(2, 0).floatValue(), uvs.get(2, 1).floatValue())); in toMesh() 221 … uvCoordinates.add(new Vector2f(uvs.get(3, 0).floatValue(), uvs.get(3, 1).floatValue())); in toMesh() 295 if (uvCoordinates != null) { in toMesh() 298 … BufferUtils.createFloatBuffer(uvCoordinates.toArray(new Vector2f[uvCoordinates.size()]))); in toMesh()
|