| 106 | } |
| 107 | |
| 108 | PxTriangleMesh* GuMeshFactory::createTriangleMesh(TriangleMeshData& data) |
| 109 | { |
| 110 | TriangleMesh* np; |
| 111 | |
| 112 | if(data.mType==PxMeshMidPhase::eBVH33) |
| 113 | { |
| 114 | PX_NEW_SERIALIZED(np, RTreeTriangleMesh)(*this, data); |
| 115 | } |
| 116 | else if(data.mType==PxMeshMidPhase::eBVH34) |
| 117 | { |
| 118 | PX_NEW_SERIALIZED(np, BV4TriangleMesh)(*this, data); |
| 119 | } |
| 120 | else return NULL; |
| 121 | |
| 122 | if(np) |
| 123 | addTriangleMesh(np); |
| 124 | |
| 125 | return np; |
| 126 | } |
| 127 | |
| 128 | // data injected by cooking lib for runtime cooking |
| 129 | PxTriangleMesh* GuMeshFactory::createTriangleMesh(void* data) |
nothing calls this directly
no test coverage detected