MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsMeshInvalid

Function IsMeshInvalid

Source/Engine/Tools/ModelTool/ModelTool.Assimp.cpp:583–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583bool IsMeshInvalid(const aiMesh* aMesh)
584{
585 return aMesh->mPrimitiveTypes != aiPrimitiveType_TRIANGLE || aMesh->mNumVertices == 0 || aMesh->mNumFaces == 0 || aMesh->mFaces[0].mNumIndices != 3;
586}
587
588bool ImportMesh(int32 index, ModelData& result, AssimpImporterData& data, String& errorMsg)
589{

Callers 1

ImportMeshFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected