Files
SaraP 739088af9f Vroni 7.8 :
- aggiornamento versione.
2025-01-29 16:24:30 +01:00

83 lines
3.6 KiB
C++

/*****************************************************************************/
/* */
/* Copyright (C) 2002-2025 M. Held */
/* */
/* This code is not in the public domain. All rights reserved! Please make */
/* sure to read the full copyright statement contained in "README.txt" or in */
/* the "main" file of this code, such as "main.cc". */
/* */
/*****************************************************************************/
/* */
/* Written by: Martin Held */
/* */
/* E-Mail: held@cs.sbg.ac.at */
/* Fax Mail: (+43 662) 8044-611 */
/* Voice Mail: (+43 662) 8044-6304 */
/* Snail Mail: Martin Held */
/* FB Informatik */
/* Universitaet Salzburg */
/* A-5020 Salzburg, Austria */
/* */
/*****************************************************************************/
/* */
/* output routines for generating test data for VD codes implemented */
/* by other colleagues. */
/* */
/*****************************************************************************/
/* */
/* get standard libraries */
/* */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
/* */
/* get my header files */
/* */
#include "fpkernel.h"
#include "vronivector.h"
#include "defs.h"
#include "numerics.h"
#ifdef OTHER
/* */
/* function prototypes of functions provided in this file */
/* */
void WriteCgalSites(char output_file[]);
void WriteCgalSites(char output_file[])
{
int i;
FILE *output;
output = OpenFileVD(output_file, "w");
/*
for (i = 2; i < num_pnts-2; ++i) {
fprintf(output, "p\n%20.16f %20.16f\n", pnts[i].p.x, pnts[i].p.y);
}
*/
for (i = 0; i < num_segs; ++i) {
fprintf(output, "s\n%20.16f %20.16f %20.16f %20.16f\n",
pnts[segs[i].i1].p.x, pnts[segs[i].i1].p.y,
pnts[segs[i].i2].p.x, pnts[segs[i].i2].p.y);
}
fclose(output);
if (num_arcs > 0)
throw std::runtime_error("VRONI error: WriteCgalSites() - circular arcs not supported by CGAL's VD code!");
return;
}
#endif