// SPDX-License-Identifier: GPL-2.0-or-later /** @file * TODO: insert short description here *//* * Authors: see git history * * Copyright (C) 2018 Authors * Released under GNU GPL v2+, read the file 'COPYING' for more information. */ /* * ShapeDraw.cpp * nlivarot * * Created by fred on Mon Jun 16 2003. * */ #include #include #include #include "Shape.h" //#include // debug routine for vizualizing the polygons void Shape::Plot (double ix, double iy, double ir, double mx, double my, bool doPoint, bool edgesNo, bool pointsNo, bool doDir,char* fileName) { FILE* outFile=fopen(fileName,"w+"); // fprintf(outFile,"\n\n\n"); fprintf(outFile,"\n"); fprintf(outFile,"\n"); fprintf(outFile,"\n"); fprintf(outFile," \n"); fprintf(outFile," \n"); if ( doPoint ) { for (int i=0;i\n",ph,pv); // localizing ok } } if ( pointsNo ) { for (int i=0;i\n",ph-2,pv+1); // localizing ok fprintf(outFile,"%i\n",i); fprintf(outFile," \n"); } } { for (int i=0;i\n",sh,sv,endh,endv); // localizing ok } else { fprintf(outFile," \n",sh,sv,eh,ev); // localizing ok } } } if ( edgesNo ) { for (int i=0;i\n",(sh+eh)/2+2,(sv+ev)/2); // localizing ok fprintf(outFile,"%i\n",i); fprintf(outFile," \n"); } } fprintf(outFile,"\n"); fclose(outFile); }