"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pariso/parisoobject.cpp" between
mathmod-10.1-source.zip and mathmod-11.0-source.zip

About: MathMod is a mathematical modeling software that visualize and animate implicit and parametric surfaces.

parisoobject.cpp  (mathmod-10.1-source):parisoobject.cpp  (mathmod-11.0-source)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2020 by Abderrahman Taha * * Copyright (C) 2021 by Abderrahman Taha *
* * * *
* * * *
* This program is free software; you can redistribute it and/or modify * * This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* This program is distributed in the hope that it will be useful, * * This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
skipping to change at line 31 skipping to change at line 31
MasterThread::MasterThread() {} MasterThread::MasterThread() {}
MasterThread::~MasterThread() {} MasterThread::~MasterThread() {}
WorkerThread::WorkerThread() {} WorkerThread::WorkerThread() {}
WorkerThread::~WorkerThread() {} WorkerThread::~WorkerThread() {}
ParisoObject::ParisoObject() {} ParisoObject::ParisoObject() {}
ParisoObject::~ParisoObject() {} ParisoObject::~ParisoObject() {}
uint ParisoObject::CNDtoUse(uint index, struct ComponentInfos *components) uint ParisoObject::CNDtoUse(uint index, struct ComponentInfos *components)
{ {
uint idx = 0; uint idx = 0;
for (uint i = 0; i < components->NbComponents.size() - 1; i++) for (uint i = 0; i < components->NbComponentsType.size() - 1; i++)
idx += components->NbComponents[i]; idx += components->NbComponentsType[i];
for (uint fctnb = 0; for (uint fctnb = 0;
fctnb < (components->NbComponents[components->NbComponents.size() - 1]); fctnb < (components->NbComponentsType[components->NbComponentsType.s ize() - 1]);
fctnb++) fctnb++)
if (index <= components->ParisoVertex[2 * (fctnb + idx) + 1] && if (index <= components->ParisoVertex[2 * (fctnb + idx) + 1] &&
index >= components->ParisoVertex[2 * (fctnb + idx)]) index >= components->ParisoVertex[2 * (fctnb + idx)])
return fctnb; return fctnb;
return 30; return 30;
} }
void ParisoObject::clear(struct ComponentInfos *cp) void ParisoObject::clear(struct ComponentInfos *cp)
{ {
cp->ParisoTriangle.clear(); cp->ParisoTriangle.clear();
cp->ParisoVertex.clear(); cp->ParisoVertex.clear();
cp->NbComponents.clear(); cp->NbComponentsType.clear();
cp->ThereisCND.clear(); cp->ThereisCND.clear();
cp->ParisoCondition.clear(); cp->ParisoCondition.clear();
cp->ShowParIsoCmp.clear();
cp->ThereisRGBA.clear(); cp->ThereisRGBA.clear();
cp->NbTrianglesVerifyCND.clear(); cp->NbTrianglesVerifyCND.clear();
cp->NbTrianglesNoCND.clear(); cp->NbTrianglesNoCND.clear();
cp->NbTrianglesNotVerifyCND.clear(); cp->NbTrianglesNotVerifyCND.clear();
cp->NbTrianglesBorderCND.clear(); cp->NbTrianglesBorderCND.clear();
cp->ParisoCurrentComponentIndex = 0; cp->ParisoCurrentComponentIndex = 0;
cp->ParisoNbComponents = 0; cp->ParisoNbComponents = 0;
cp->Interleave = true; cp->Interleave = true;
cp->pariso = false; cp->pariso = false;
cp->updateviewer = false; cp->updateviewer = false;
} }
 End of changes. 7 change blocks. 
7 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)