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

NotifyRemoved() private method

private NotifyRemoved ( ) : void
return void
			internal void NotifyRemoved()
			{
				for ( int i = 0; i < 3; i++ )
				{
					// remove this tri from the vertices
					if ( vertex[ i ] != null )
						vertex[ i ].commonVertex.faces.Remove( this );
				}
				for ( int i = 0; i < 3; i++ )
				{
					int i2 = ( i + 1 ) % 3;
					if ( vertex[ i ] == null || vertex[ i2 ] == null )
						continue;
					// Check remaining vertices and remove if not neighbours anymore
					// NB May remain neighbours if other tris link them
					vertex[ i ].commonVertex.RemoveIfNonNeighbor( vertex[ i2 ].commonVertex );
					vertex[ i2 ].commonVertex.RemoveIfNonNeighbor( vertex[ i ].commonVertex );
				}

				removed = true;
			}