Axiom.Core.ProgressiveMesh.PMTriangle.SetDetails C# (CSharp) Method

SetDetails() private method

private SetDetails ( uint index, PMFaceVertex v0, PMFaceVertex v1, PMFaceVertex v2 ) : void
index uint
v0 PMFaceVertex
v1 PMFaceVertex
v2 PMFaceVertex
return void
			internal void SetDetails( uint index, PMFaceVertex v0, PMFaceVertex v1, PMFaceVertex v2 )
			{
				Debug.Assert( v0 != v1 && v1 != v2 && v2 != v0 );
				this.index = index;
				vertex[ 0 ] = v0;
				vertex[ 1 ] = v1;
				vertex[ 2 ] = v2;
				ComputeNormal();
				// Add tri to vertices
				// Also tell vertices they are neighbours
				for ( int i = 0; i < 3; i++ )
				{
					vertex[ i ].commonVertex.faces.Add( this );
					for ( int j = 0; j < 3; j++ )
						if ( i != j )
							vertex[ i ].commonVertex.AddIfNonNeighbor( vertex[ j ].commonVertex );
				}
			}
			void ComputeNormal()