#ifndef B3_REDUCE_CONTACTS_H #define B3_REDUCE_CONTACTS_H inline int b3ReduceContacts(const b3Float4* p, int nPoints, const b3Float4& nearNormal, b3Int4* contactIdx) { if( nPoints == 0 ) return 0; if (nPoints <=4) return nPoints; if (nPoints >64) nPoints = 64; b3Float4 center = b3MakeFloat4(0,0,0,0); { for (int i=0;i