| 110 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 111 | |
| 112 | bool Cooking::cookTriangleMesh(TriangleMeshBuilder& builder, const PxTriangleMeshDesc& desc, PxOutputStream& stream, PxTriangleMeshCookingResult::Enum* condition) const |
| 113 | { |
| 114 | // cooking code does lots of float bitwise reinterpretation that generates exceptions |
| 115 | PX_FPU_GUARD; |
| 116 | |
| 117 | if (condition) |
| 118 | *condition = PxTriangleMeshCookingResult::eSUCCESS; |
| 119 | if(!builder.loadFromDesc(desc, condition, false)) |
| 120 | { |
| 121 | return false; |
| 122 | } |
| 123 | |
| 124 | builder.save(stream, platformMismatch(), mParams); |
| 125 | return true; |
| 126 | } |
| 127 | |
| 128 | bool Cooking::cookTriangleMesh(const PxTriangleMeshDesc& desc, PxOutputStream& stream, PxTriangleMeshCookingResult::Enum* condition) const |
| 129 | { |
no test coverage detected