MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / visualize

Method visualize

physx/source/scenequery/src/SqBucketPruner.cpp:2152–2183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2150}
2151
2152void BucketPrunerCore::visualize(Cm::RenderOutput& out, PxU32 color) const
2153{
2154 const PxTransform idt = PxTransform(PxIdentity);
2155 out << idt;
2156 out << color;
2157
2158 ::visualize(out, mGlobalBox);
2159
2160 for(PxU32 i=0;i<5;i++)
2161 {
2162 if(!mLevel1.mCounters[i])
2163 continue;
2164
2165 ::visualize(out, mLevel1.mBucketBox[i]);
2166
2167 for(PxU32 j=0;j<5;j++)
2168 {
2169 if(!mLevel2[i].mCounters[j])
2170 continue;
2171
2172 ::visualize(out, mLevel2[i].mBucketBox[j]);
2173
2174 for(PxU32 k=0;k<5;k++)
2175 {
2176 if(!mLevel3[i][j].mCounters[k])
2177 continue;
2178
2179 ::visualize(out, mLevel3[i][j].mBucketBox[k]);
2180 }
2181 }
2182 }
2183}
2184
2185///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2186

Callers

nothing calls this directly

Calls 2

visualizeFunction · 0.70
PxTransformClass · 0.50

Tested by

no test coverage detected