View Javadoc

1   package com.insanityengine.ghia.model;
2   
3   import com.insanityengine.ghia.m3.*;
4   
5   /***
6    *
7    * <P>
8    * Some kinda mesh 
9    * </P>
10   *
11   * @author BrianHammond
12   *
13   * $Header: /usr/local/cvsroot/ghia/src/java/com/insanityengine/ghia/model/MishMesh.java,v 1.2 2005/03/19 17:50:02 brian Exp $
14   *
15   */
16  
17  public class MishMesh {
18  	Pt3 ptz[];
19  	Pt3 trz[];
20  
21  	int tri[]; // secret 2d array of 3 indexes into pts...
22  
23  	// normal fun
24  	Pt3 normalz[];
25  	
26  	Mat4 localMat = new Mat4();
27  
28  	MishMesh() {
29  		ptz = null;
30  		trz = null;
31  	}
32  	
33  	void vStart( int n ) {
34  		ptz = new Pt3[ n ];
35  		trz = new Pt3[ n ];
36  		for ( int i = 0 ; i < n ; i++ ) {
37  			trz[ i ] = new Pt3();
38  		}
39  	}
40  	void setV( int i, float x, float y, float z ) {
41  		ptz[ i ] = new Pt3( x, y, z );
42  	}
43  	void setM( int i, float s, float t ) {
44  		ptz[ i ].s = s;
45  		ptz[ i ].t = t;
46  	}
47  
48  	void tStart( int n ) {
49  		tri = new int[ 3 * n ];
50  		normalz = new Pt3[ n ];
51  		for ( int i = 0 ; i < n ; i++ ) normalz[ i ] = new Pt3();
52  	}
53  	void setT( int i, int v1, int v2, int v3 ) {
54  			
55  	}
56  
57  	
58  };
59  
60  /***
61   *
62   * $Log: MishMesh.java,v $
63   * Revision 1.2  2005/03/19 17:50:02  brian
64   * repackaging
65   *
66   * Revision 1.1  2004/09/02 13:17:16  brian
67   * the big reorg
68   *
69   * Revision 1.3  2004/09/01 01:10:42  brian
70   * fix class level javadoc placement
71   *
72   * Revision 1.2  2004/09/01 00:11:06  brian
73   * author, log and header stuff
74   *
75   *
76   */