EgtGeomKernel :

- in Triangulate aggiunta triangolazione Delaunay
- aggiunti file della libreria TrianglePP
- funzioni per polylines spostate da SurfTriMeshBooleans.cpp a PolyLine.cpp.
This commit is contained in:
SaraP
2021-06-29 15:51:53 +02:00
parent 4b1bf75911
commit 3932cf07e5
14 changed files with 19906 additions and 346 deletions
+43
View File
@@ -0,0 +1,43 @@
/*! \file assert.cpp
\brief Implements a better 'Assert'
*/
#include "stdafx.h"
#include <iostream>
#include <stdlib.h>
#if _WINDOWS
#include <cassert>
#endif
namespace tpp {
/*! \def MyAssertFunction
\brief Function used by 'Assert' function in _DEBUG mode.
Details.
*/
bool MyAssertFunction( bool b, const char* desc, int line, const char* file){
// changed mrkkrj --
#if _WINDOWS
(void)desc;
(void)line;
(void)file;
assert(b); // use integration with Visual Studio!
(void)b;
return true;
#else
// Original:
if (b) return true;
std::cerr << "\n\nAssertion Failure\n";
std::cerr << "Description : " << desc << std::endl;
std::cerr << "Filename : " << file << std::endl;
std::cerr << "Line No : " << line << std::endl;
exit(1);
#endif
}
} // end of namespace