MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / cookTriangleMesh

Method cookTriangleMesh

physx/source/physxcooking/src/Cooking.cpp:112–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 10

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

Calls 3

loadFromDescMethod · 0.45
saveMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected