32 #include "DGtal/base/Common.h"
33 #include "DGtal/helpers/StdDefs.h"
34 #include "DGtal/shapes/fromPoints/MeshFromPoints.h"
38 using namespace DGtal;
39 using namespace DGtal::Z2i;
50 bool testMeshFromPoints()
88 trace.
info() << p0f0 << p1f0 << p2f0<< endl;
91 trace.
info() << p0f1 << p1f1 << p2f1<< endl;
94 return (p0==p0f0) && (p1==p1f0) && (p2==p2f0) &&
95 (p3==p0f1) && (p4==p1f1) && (p5==p2f1) ;
101 int main(
int argc,
char** argv )
105 for (
int i = 0; i < argc; ++i )
109 bool res = testMeshFromPoints();
110 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;