Lines Matching defs:vertices
137 * Constructs the buffer for the vertices of the concave shape.
139 * @param concaveShape the shape to get the vertices for / from.
155 * @param convexShape the shape to retreieve the vertices from.
156 * @return the vertices as a FloatBuffer, ordered as Triangles.
176 // The number of bytes needed is: (floats in a vertex) * (vertices in a triangle) * (# of triangles) * (size of float in bytes)
178 FloatBuffer vertices = BufferUtils.createFloatBuffer(numberOfFloats);
181 vertices.limit(numberOfFloats);
196 vertices.put(vertexA.x).put(vertexA.y).put(vertexA.z);
197 vertices.put(vertexB.x).put(vertexB.y).put(vertexB.z);
198 vertices.put(vertexC.x).put(vertexC.y).put(vertexC.z);
201 vertices.clear();
202 return vertices;
215 private ArrayList<Vector3f> vertices;
218 vertices = new ArrayList<Vector3f>();
225 vertices.add(new Vector3f(triangle[0]));
226 vertices.add(new Vector3f(triangle[1]));
227 vertices.add(new Vector3f(triangle[2]));
231 * Retrieves the vertices from the Triangle buffer.
235 final int numberOfFloats = vertices.size() * 3;
242 for (Vector3f v : vertices) {
246 vertices.clear();