int32 FPoly::Faces( const FPoly &Test ) const { // Coplanar implies not facing. if( IsCoplanar( Test ) ) return 0; // If this poly is frontfaced relative to all of Test's points, they're not facing. for( int32 i=0; i<Test.Vertices.Num(); i++ ) { if( !IsBackfaced( Test.Vertices[i] ) ) { // If Test is frontfaced relative to on or more of this poly's points, they're facing. for( i=0; i<Vertices.Num(); i++ ) if( Test.IsBackfaced( Vertices[i] ) ) return 1; return 0; } } return 0; }