mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
crash bugs have been patched
This commit is contained in:
parent
3219315d99
commit
26fb620ec0
@ -305,8 +305,7 @@ class MeshLabServer
|
||||
bool ret = iFilter->applyFilter( action, meshDocument, (*ii).second, FilterCallBack);
|
||||
//iFilter->applyFilter( action, mm, (*ii).second, QCallBack );
|
||||
//GLA()->log.Logf(GLLogStream::WARNING,"Re-Applied filter %s",qPrintable((*ii).first));
|
||||
int vn = meshDocument.meshList[1]->cm.vert.size();
|
||||
int fn = meshDocument.meshList[1]->cm.face.size();
|
||||
|
||||
if(!ret)
|
||||
{
|
||||
printf("Problem with filter: %s\n",qPrintable((*ii).first));
|
||||
@ -497,17 +496,19 @@ printf("Mesh %s loaded has %i vn %i fn\n", qPrintable(mm->shortName()), mm->cm.v
|
||||
//if there is not one name or an equal number of in and out names then exit
|
||||
if(meshNamesOut.isEmpty() )
|
||||
printf("No output mesh names given.");
|
||||
else //if(meshNamesOut.size() != 1 && meshNamesOut.size() != meshNamesIn.size() ) {
|
||||
if(meshNamesOut.size() > meshDocument.meshList.size() ) {
|
||||
else
|
||||
if(meshNamesOut.size() != 1 && meshNamesOut.size() != meshNamesIn.size() )
|
||||
{
|
||||
//if(meshNamesOut.size() > meshDocument.meshList.size() ) {
|
||||
printf("Wrong number of output mesh names given\n");
|
||||
exit(-1);
|
||||
} else
|
||||
{
|
||||
for(int i = 0; i < meshNamesOut.size(); i++)
|
||||
{
|
||||
server.Save(meshDocument.meshList[i], mask, meshNamesOut.at(i));
|
||||
printf("Mesh %s saved with: %i vn %i fn\n", qPrintable(meshDocument.meshList[i]->fullName()), meshDocument.meshList[i]->cm.vn, meshDocument.meshList[i]->cm.fn);
|
||||
}
|
||||
//for(int i = 0; i < meshNamesOut.size(); i++)
|
||||
//{
|
||||
server.Save(meshDocument.mm(), mask, meshNamesOut.at(0));
|
||||
printf("Mesh %s saved with: %i vn %i fn\n", qPrintable(meshDocument.mm()->fullName()), meshDocument.mm()->cm.vn, meshDocument.mm()->cm.fn);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user