Mesh - package raytracer.utility; import java.util.Vector;...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
package raytracer.utility; import java.util.Vector; import raytracer.geometricObjects.MeshTriangle; /** * // Copyright (C) Kevin Suffern 2000-2007. // This C++ code is for non-commercial purposes only. // This C++ code is licensed under the GNU General Public License Version 2. // See the file COPYING.txt for the full license. // A mesh object stores the data for mesh triangles: // // vertices // normals // uv texture coordinates // lists of triangles that share each vertex // // Mesh triangles are stored in a grid, which has a pointer to the mesh // Each mesh triangle also has a pointer to the mesh // The Mesh class does not inherit from GeometricObject * * @author hhh * */ public class Mesh { public Vector<Point3D> vertices; // mesh vertices public Vector<Normal> normals; // average normal at each vertex; public Vector<Float> u; // u texture coordinate at each vertex public Vector<Float> v; // v texture coordinate at each vertex public Vector<Vector<Integer> > vertex_faces; // the triangles shared by each vertex
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Mesh - package raytracer.utility; import java.util.Vector;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online