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