extend Wavefront obj loader to recognize objects (for compound shape creation)
add reproduction of a bug in compound versus concave trimesh
This commit is contained in:
@@ -1062,7 +1062,7 @@ __kernel void clipCompoundsHullHullKernel( __global const int4* gpuCompoundPai
|
||||
__global const int* gpuHasCompoundSepNormalsOut,
|
||||
__global Contact4* restrict globalContactsOut,
|
||||
counter32_t nGlobalContactsOut,
|
||||
int numCompoundPairs)
|
||||
int numCompoundPairs, int maxContactCapacity)
|
||||
{
|
||||
|
||||
int i = get_global_id(0);
|
||||
@@ -1155,7 +1155,7 @@ __kernel void clipCompoundsHullHullKernel( __global const int4* gpuCompoundPai
|
||||
|
||||
int dstIdx;
|
||||
AppendInc( nGlobalContactsOut, dstIdx );
|
||||
//if ((dstIdx+nReducedContacts) < capacity)
|
||||
if ((dstIdx+nReducedContacts) < maxContactCapacity)
|
||||
{
|
||||
__global Contact4* c = globalContactsOut+ dstIdx;
|
||||
c->m_worldNormal = normal;
|
||||
|
||||
@@ -1064,7 +1064,7 @@ static const char* satClipKernelsCL= \
|
||||
" __global const int* gpuHasCompoundSepNormalsOut,\n"
|
||||
" __global Contact4* restrict globalContactsOut,\n"
|
||||
" counter32_t nGlobalContactsOut,\n"
|
||||
" int numCompoundPairs)\n"
|
||||
" int numCompoundPairs, int maxContactCapacity)\n"
|
||||
"{\n"
|
||||
"\n"
|
||||
" int i = get_global_id(0);\n"
|
||||
@@ -1157,7 +1157,7 @@ static const char* satClipKernelsCL= \
|
||||
" \n"
|
||||
" int dstIdx;\n"
|
||||
" AppendInc( nGlobalContactsOut, dstIdx );\n"
|
||||
" //if ((dstIdx+nReducedContacts) < capacity)\n"
|
||||
" if ((dstIdx+nReducedContacts) < maxContactCapacity)\n"
|
||||
" {\n"
|
||||
" __global Contact4* c = globalContactsOut+ dstIdx;\n"
|
||||
" c->m_worldNormal = normal;\n"
|
||||
|
||||
Reference in New Issue
Block a user