obj/ObjModel.java
/**Does not support parameter space vertices or .mtl materials**/
Does not support parameter space vertices or .mtl materials
Does not support parameter space vertices or . mtl materials
@Override
	public void joglrender(GL2 gl) {
		for (ObjFace face : faces) {
			gl.glBegin(GL2.GL_POLYGON);
				for (int i = 0; i < face.size; i++) {
					if (face.hasNormals()) {
						Point3f norm = norms.get(face.normIndxs[i] - 1);
						gl.glNormal3f(norm.x, norm.y, norm.z);
					}
					if (face.hasTextures()) {
						Point3f txtr = norms.get(face.txtrIndxs[i] - 1);
						gl.glTexCoord3f(txtr.x, txtr.y, txtr.z);
					}
					{
						Point3f vert = verts.get(face.vertIndxs[i] - 1);
						gl.glVertex3f(vert.x, vert.y, vert.z);
					}
				}
			gl.glEnd();
		}
	}
@ Override public void joglrender ( GL2 gl ) { for ( ObjFace face : faces ) { gl . glBegin ( GL2 . GL_POLYGON ) ; for ( int i = 0 ; i < face . size ; i ++ ) { if ( face . hasNormals ( ) ) { Point3f norm = norms . get ( face . normIndxs [ i ] - 1 ) ; gl . glNormal3f ( norm . x , norm . y , norm . z ) ; } if ( face . hasTextures ( ) ) { Point3f txtr = norms . get ( face . txtrIndxs [ i ] - 1 ) ; gl . glTexCoord3f ( txtr . x , txtr . y , txtr . z ) ; } { Point3f vert = verts . get ( face . vertIndxs [ i ] - 1 ) ; gl . glVertex3f ( vert . x , vert . y , vert . z ) ; } } gl . glEnd ( ) ; } }
Does not support parameter space vertices or .mtl materials
Does not support parameter space vertices or . mtl materials