void BigConvexData::importExtraData(PxDeserializationContext& context) { if(mData.mSamples) mData.mSamples = context.readExtraData<PxU8, PX_SERIAL_ALIGN>(PxU32(mData.mNbSamples*2)); if(mData.mValencies) { context.alignExtraData(); PxU32 numVerts = (mData.mNbVerts+3)&~3; mData.mValencies = context.readExtraData<Gu::Valency>(numVerts); mData.mAdjacentVerts = context.readExtraData<PxU8>(mData.mNbAdjVerts); } }
void RTree::importExtraData(PxDeserializationContext& context) { context.alignExtraData(128); mPages = context.readExtraData<RTreePage>(mTotalPages); }