sagpant / assimp Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Instance 1
File : code/Material/MaterialSystem.cpp
Function: aiGetMaterialProperty
assimp/code/Material/MaterialSystem.cpp
Line 102 in 1427e67
Code extract:
ai_assert( pMat != nullptr );
const aiMaterialProperty* prop;
aiGetMaterialProperty(pMat,pKey,type,index, (const aiMaterialProperty**) &prop); <------ HERE
if ( nullptr == prop) {
return AI_FAILURE;
How can I fix it?
Correct reference usage found in code/Common/SceneCombiner.cpp
at line 938
.
assimp/code/Common/SceneCombiner.cpp
Line 938 in 1427e67
// Test if we already have a matching property
const aiMaterialProperty* prop_exist;
if(aiGetMaterialProperty(out, sprop->mKey.C_Str(), sprop->mSemantic, sprop->mIndex, &prop_exist) != AI_SUCCESS) { <------ HERE
// If not, we add it to the new material
aiMaterialProperty* prop = out->mProperties[out->mNumProperties] = new aiMaterialProperty();
Instance 2
File : code/Material/MaterialSystem.cpp
Function: aiGetMaterialProperty
assimp/code/Material/MaterialSystem.cpp
Line 190 in 1427e67
Code extract:
ai_assert( pMat != NULL );
const aiMaterialProperty* prop;
aiGetMaterialProperty(pMat,pKey,type,index,(const aiMaterialProperty**) &prop); <------ HERE
if (!prop) {
return AI_FAILURE;
How can I fix it?
Correct reference usage found in code/Common/SceneCombiner.cpp
at line 938
.
assimp/code/Common/SceneCombiner.cpp
Line 938 in 1427e67
// Test if we already have a matching property
const aiMaterialProperty* prop_exist;
if(aiGetMaterialProperty(out, sprop->mKey.C_Str(), sprop->mSemantic, sprop->mIndex, &prop_exist) != AI_SUCCESS) { <------ HERE
// If not, we add it to the new material
aiMaterialProperty* prop = out->mProperties[out->mNumProperties] = new aiMaterialProperty();
Instance 3
File : code/Material/MaterialSystem.cpp
Function: aiGetMaterialProperty
assimp/code/Material/MaterialSystem.cpp
Line 298 in 1427e67
Code extract:
ai_assert (pOut != NULL);
const aiMaterialProperty* prop;
aiGetMaterialProperty(pMat,pKey,type,index,(const aiMaterialProperty**)&prop); <------ HERE
if (!prop) {
return AI_FAILURE;
How can I fix it?
Correct reference usage found in code/Common/SceneCombiner.cpp
at line 938
.
assimp/code/Common/SceneCombiner.cpp
Line 938 in 1427e67
// Test if we already have a matching property
const aiMaterialProperty* prop_exist;
if(aiGetMaterialProperty(out, sprop->mKey.C_Str(), sprop->mSemantic, sprop->mIndex, &prop_exist) != AI_SUCCESS) { <------ HERE
// If not, we add it to the new material
aiMaterialProperty* prop = out->mProperties[out->mNumProperties] = new aiMaterialProperty();
Instance 1
File : tools/assimp_cmd/CompareDump.cpp
Function: fread
assimp/tools/assimp_cmd/CompareDump.cpp
Line 519 in 1427e67
Code extract:
res|=fread(¤t.first,4,1,ctx.get_expect());
res|=fread(¤t.second,4,1,ctx.get_expect()) <<1u;
res|=fread(&actual.first,4,1,ctx.get_actual()) <<2u; <------ HERE
res|=fread(&actual.second,4,1,ctx.get_actual()) <<3u;
How can I fix it?
Correct reference usage found in tools/assimp_cmd/CompareDump.cpp
at line 277
.
assimp/tools/assimp_cmd/CompareDump.cpp
Line 277 in 1427e67
if(1 != fread(&filla,sizeof(T),1,actual)) {
EOFActual();
}
if(1 != fread(&fille,sizeof(T),1,expect)) { <------ HERE
EOFExpect();
}
Instance 2
File : tools/assimp_cmd/CompareDump.cpp
Function: fread
assimp/tools/assimp_cmd/CompareDump.cpp
Line 520 in 1427e67
Code extract:
res|=fread(¤t.first,4,1,ctx.get_expect());
res|=fread(¤t.second,4,1,ctx.get_expect()) <<1u;
res|=fread(&actual.first,4,1,ctx.get_actual()) <<2u;
res|=fread(&actual.second,4,1,ctx.get_actual()) <<3u; <------ HERE
if(res!=0xf) {
How can I fix it?
Correct reference usage found in tools/assimp_cmd/CompareDump.cpp
at line 277
.
assimp/tools/assimp_cmd/CompareDump.cpp
Line 277 in 1427e67
if(1 != fread(&filla,sizeof(T),1,actual)) {
EOFActual();
}
if(1 != fread(&fille,sizeof(T),1,expect)) { <------ HERE
EOFExpect();
}
Instance 1
File : tools/assimp_cmd/CompareDump.cpp
Function: fread
assimp/tools/assimp_cmd/CompareDump.cpp
Line 519 in 1427e67
Code extract:
res|=fread(¤t.first,4,1,ctx.get_expect());
res|=fread(¤t.second,4,1,ctx.get_expect()) <<1u;
res|=fread(&actual.first,4,1,ctx.get_actual()) <<2u; <------ HERE
res|=fread(&actual.second,4,1,ctx.get_actual()) <<3u;
How can I fix it?
Correct reference usage found in tools/assimp_cmd/CompareDump.cpp
at line 277
.
assimp/tools/assimp_cmd/CompareDump.cpp
Line 277 in 1427e67
if(1 != fread(&filla,sizeof(T),1,actual)) {
EOFActual();
}
if(1 != fread(&fille,sizeof(T),1,expect)) { <------ HERE
EOFExpect();
}
Instance 2
File : tools/assimp_cmd/CompareDump.cpp
Function: fread
assimp/tools/assimp_cmd/CompareDump.cpp
Line 520 in 1427e67
Code extract:
res|=fread(¤t.first,4,1,ctx.get_expect());
res|=fread(¤t.second,4,1,ctx.get_expect()) <<1u;
res|=fread(&actual.first,4,1,ctx.get_actual()) <<2u;
res|=fread(&actual.second,4,1,ctx.get_actual()) <<3u; <------ HERE
if(res!=0xf) {
How can I fix it?
Correct reference usage found in tools/assimp_cmd/CompareDump.cpp
at line 277
.
assimp/tools/assimp_cmd/CompareDump.cpp
Line 277 in 1427e67
if(1 != fread(&filla,sizeof(T),1,actual)) {
EOFActual();
}
if(1 != fread(&fille,sizeof(T),1,expect)) { <------ HERE
EOFExpect();
}
Instance 1
File : code/AssetLib/IFC/IFCLoader.cpp
Function: unzGetCurrentFileInfo
https://github.com/sagpant/assimp/blob/1427e67b54906419e9f83cc8625e2207fbb0fcd5/code/AssetLib/IFC/IFCLoader.cpp#L196Check out:fileInfo
Code extract:
// get file size, etc.
unz_file_info fileInfo;
char filename[256];
unzGetCurrentFileInfo(zip, &fileInfo, filename, sizeof(filename), 0, 0, 0, 0); <------ HERE
if (GetExtension(filename) != "ifc") {
continue;
How can I fix it?
Correct reference usage found in code/Common/ZipArchiveIOSystem.cpp
at line 363
.
assimp/code/Common/ZipArchiveIOSystem.cpp
Line 363 in 1427e67
char filename[FileNameSize];
unz_file_info fileInfo;
if (unzGetCurrentFileInfo(m_ZipFileHandle, &fileInfo, filename, FileNameSize, nullptr, 0, nullptr, 0) == UNZ_OK) { <------ HERE
if (fileInfo.uncompressed_size != 0) {
std::string filename_string(filename, fileInfo.size_filename);
Instance 1
File : code/AssetLib/Raw/RawLoader.cpp
Function: $SkipSpaces@D@Assimp
assimp/code/AssetLib/Raw/RawLoader.cpp
Line 127 in 1427e67
Code extract:
{
// if the line starts with a non-numeric identifier, it marks
// the beginning of a new group
const char* sz = line;SkipSpaces(&sz); <------ HERE
if (IsLineEnd(*sz))continue;
if (!IsNumeric(*sz))
How can I fix it?
Correct reference usage found in code/AssetLib/XGL/XGLLoader.cpp
at line 924
.
assimp/code/AssetLib/XGL/XGLLoader.cpp
Line 924 in 1427e67
const char* s = m_reader->getNodeData();
for(int i = 0; i < 3; ++i) {
if(!SkipSpaces(&s)) { <------ HERE
LogError("unexpected EOL, failed to parse vec3");
return vec;
Instance 1
File : code/AssetLib/IFC/IFCLoader.cpp
Function: unzGetCurrentFileInfo
assimp/code/AssetLib/IFC/IFCLoader.cpp
Line 196 in 1427e67
Code extract:
// get file size, etc.
unz_file_info fileInfo;
char filename[256];
unzGetCurrentFileInfo(zip, &fileInfo, filename, sizeof(filename), 0, 0, 0, 0); <------ HERE
if (GetExtension(filename) != "ifc") {
continue;
How can I fix it?
Correct reference usage found in code/Common/ZipArchiveIOSystem.cpp
at line 363
.
assimp/code/Common/ZipArchiveIOSystem.cpp
Line 363 in 1427e67
char filename[FileNameSize];
unz_file_info fileInfo;
if (unzGetCurrentFileInfo(m_ZipFileHandle, &fileInfo, filename, FileNameSize, nullptr, 0, nullptr, 0) == UNZ_OK) { <------ HERE
if (fileInfo.uncompressed_size != 0) {
std::string filename_string(filename, fileInfo.size_filename);
Instance 1
File : code/AssetLib/IFC/IFCLoader.cpp
Function: unzGetCurrentFileInfo
assimp/code/AssetLib/IFC/IFCLoader.cpp
Line 196 in 1427e67
Code extract:
// get file size, etc.
unz_file_info fileInfo;
char filename[256];
unzGetCurrentFileInfo(zip, &fileInfo, filename, sizeof(filename), 0, 0, 0, 0); <------ HERE
if (GetExtension(filename) != "ifc") {
continue;
How can I fix it?
Correct reference usage found in code/Common/ZipArchiveIOSystem.cpp
at line 363
.
assimp/code/Common/ZipArchiveIOSystem.cpp
Line 363 in 1427e67
char filename[FileNameSize];
unz_file_info fileInfo;
if (unzGetCurrentFileInfo(m_ZipFileHandle, &fileInfo, filename, FileNameSize, nullptr, 0, nullptr, 0) == UNZ_OK) { <------ HERE
if (fileInfo.uncompressed_size != 0) {
std::string filename_string(filename, fileInfo.size_filename);
Instance 1
File : code/AssetLib/Raw/RawLoader.cpp
Function: $SkipSpaces@D@Assimp
assimp/code/AssetLib/Raw/RawLoader.cpp
Line 127 in 1427e67
Code extract:
{
// if the line starts with a non-numeric identifier, it marks
// the beginning of a new group
const char* sz = line;SkipSpaces(&sz); <------ HERE
if (IsLineEnd(*sz))continue;
if (!IsNumeric(*sz))
How can I fix it?
Correct reference usage found in code/AssetLib/XGL/XGLLoader.cpp
at line 924
.
assimp/code/AssetLib/XGL/XGLLoader.cpp
Line 924 in 1427e67
const char* s = m_reader->getNodeData();
for(int i = 0; i < 3; ++i) {
if(!SkipSpaces(&s)) { <------ HERE
LogError("unexpected EOL, failed to parse vec3");
return vec;
Instance 1
File : code/Material/MaterialSystem.cpp
Function: aiGetMaterialProperty
assimp/code/Material/MaterialSystem.cpp
Line 102 in 1427e67
Code extract:
ai_assert( pMat != nullptr );
const aiMaterialProperty* prop;
aiGetMaterialProperty(pMat,pKey,type,index, (const aiMaterialProperty**) &prop); <------ HERE
if ( nullptr == prop) {
return AI_FAILURE;
How can I fix it?
Correct reference usage found in code/Common/SceneCombiner.cpp
at line 938
.
assimp/code/Common/SceneCombiner.cpp
Line 938 in 1427e67
// Test if we already have a matching property
const aiMaterialProperty* prop_exist;
if(aiGetMaterialProperty(out, sprop->mKey.C_Str(), sprop->mSemantic, sprop->mIndex, &prop_exist) != AI_SUCCESS) { <------ HERE
// If not, we add it to the new material
aiMaterialProperty* prop = out->mProperties[out->mNumProperties] = new aiMaterialProperty();
Instance 2
File : code/Material/MaterialSystem.cpp
Function: aiGetMaterialProperty
assimp/code/Material/MaterialSystem.cpp
Line 190 in 1427e67
Code extract:
ai_assert( pMat != NULL );
const aiMaterialProperty* prop;
aiGetMaterialProperty(pMat,pKey,type,index,(const aiMaterialProperty**) &prop); <------ HERE
if (!prop) {
return AI_FAILURE;
How can I fix it?
Correct reference usage found in code/Common/SceneCombiner.cpp
at line 938
.
assimp/code/Common/SceneCombiner.cpp
Line 938 in 1427e67
// Test if we already have a matching property
const aiMaterialProperty* prop_exist;
if(aiGetMaterialProperty(out, sprop->mKey.C_Str(), sprop->mSemantic, sprop->mIndex, &prop_exist) != AI_SUCCESS) { <------ HERE
// If not, we add it to the new material
aiMaterialProperty* prop = out->mProperties[out->mNumProperties] = new aiMaterialProperty();
Instance 3
File : code/Material/MaterialSystem.cpp
Function: aiGetMaterialProperty
assimp/code/Material/MaterialSystem.cpp
Line 298 in 1427e67
Code extract:
ai_assert (pOut != NULL);
const aiMaterialProperty* prop;
aiGetMaterialProperty(pMat,pKey,type,index,(const aiMaterialProperty**)&prop); <------ HERE
if (!prop) {
return AI_FAILURE;
How can I fix it?
Correct reference usage found in code/Common/SceneCombiner.cpp
at line 938
.
assimp/code/Common/SceneCombiner.cpp
Line 938 in 1427e67
// Test if we already have a matching property
const aiMaterialProperty* prop_exist;
if(aiGetMaterialProperty(out, sprop->mKey.C_Str(), sprop->mSemantic, sprop->mIndex, &prop_exist) != AI_SUCCESS) { <------ HERE
// If not, we add it to the new material
aiMaterialProperty* prop = out->mProperties[out->mNumProperties] = new aiMaterialProperty();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.