Lines Matching defs:vertices

116         // reading vertices

117 Vector3f[] vertices = this.getVertices(structure, blenderContext);
118 int verticesAmount = vertices.length;
120 // vertices Colors
157 // this map's key is the vertex index from 'vertices 'table and the value are indices from 'vertexList'
199 Vector3f n = FastMath.computeNormal(vertices[v1], vertices[v2], vertices[v3]);
200 this.addNormal(n, normalMap, smooth, vertices[v1], vertices[v2], vertices[v3]);
201 normalList.add(normalMap.get(vertices[v1]));
202 normalList.add(normalMap.get(vertices[v2]));
203 normalList.add(normalMap.get(vertices[v3]));
207 vertexList.add(vertices[v1]);
211 vertexList.add(vertices[v2]);
215 vertexList.add(vertices[v3]);
225 vertexList.add(vertices[v1]);
229 vertexList.add(vertices[v3]);
233 vertexList.add(vertices[v4]);
235 this.addNormal(n, normalMap, smooth, vertices[v4]);
236 normalList.add(normalMap.get(vertices[v1]));
237 normalList.add(normalMap.get(vertices[v3]));
238 normalList.add(normalMap.get(vertices[v4]));
257 // reading vertices groups (from the parent)
311 // creating vertices indices for this mesh
330 // setting vertices colors
437 * @param vertices
438 * a list of vertices read from the blender file
440 public void addNormal(Vector3f normalToAdd, Map<Vector3f, Vector3f> normalMap, boolean smooth, Vector3f... vertices) {
441 for (Vector3f v : vertices) {
452 * This method fills the vertex reference map. The vertices are loaded once and referenced many times in the model. This map is created
453 * to tell where the basic vertices are referenced in the result vertex lists. The key of the map is the basic vertex index, and its key
473 * This method returns the vertices colors. Each vertex is stored in byte[4] array.
479 * @return a list of vertices colors, each color belongs to a single vertex
502 * This method returns the vertices.
508 * @return a list of vertices colors, each color belongs to a single vertex
515 Vector3f[] vertices = new Vector3f[verticesAmount];
517 return vertices;
525 vertices[i] = new Vector3f(coordinates.get(0).floatValue(), coordinates.get(2).floatValue(), -coordinates.get(1).floatValue());
530 vertices[i] = new Vector3f(coordinates.get(0).floatValue(), coordinates.get(1).floatValue(), coordinates.get(2).floatValue());
533 return vertices;