MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / cookTriangleMesh

Method cookTriangleMesh

deps/physx/physx/source/physxcooking/src/Cooking.cpp:113–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
112
113bool 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
129bool Cooking::cookTriangleMesh(const PxTriangleMeshDesc& desc, PxOutputStream& stream, PxTriangleMeshCookingResult::Enum* condition) const
130{

Callers 9

createBV33TriangleMeshFunction · 0.80
createBV34TriangleMeshFunction · 0.80
generateTriMeshMethod · 0.80
newMeshMethod · 0.80
addMeshMethod · 0.80
createTriangleMesh32Method · 0.80
objectToFileImplMethod · 0.80
fileToObjectMethod · 0.80

Calls 3

loadFromDescMethod · 0.45
saveMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected