From 00276b769b54b1eb5d83e071ab42225676a95adb Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 8 Jul 1998 14:59:13 +0000 Subject: [PATCH] *.[ch] renamed to *.[ch]xx --- SplitTris/{splittris.c => splittris.cxx} | 25 +++++++++++++----------- SplitTris/{splittris.h => splittris.hxx} | 17 +++++++++------- 2 files changed, 24 insertions(+), 18 deletions(-) rename SplitTris/{splittris.c => splittris.cxx} (97%) rename SplitTris/{splittris.h => splittris.hxx} (76%) diff --git a/SplitTris/splittris.c b/SplitTris/splittris.cxx similarity index 97% rename from SplitTris/splittris.c rename to SplitTris/splittris.cxx index 66810f225..27ad59954 100644 --- a/SplitTris/splittris.c +++ b/SplitTris/splittris.cxx @@ -32,7 +32,7 @@ #include /* for stat() */ #include /* for stat() */ -#include "splittris.h" +#include "splittris.hxx" #include #include @@ -40,7 +40,7 @@ #include #include -#include +#include int nodecount, tricount; double xmin, xmax, ymin, ymax; @@ -49,16 +49,16 @@ static double nodes_orig[MAX_NODES][3]; static int tris[MAX_TRIS][3]; /* static int new_tris[MAX_TRIS][3]; */ -static fgCartesianPoint3d nodes_cart[MAX_NODES]; +static fgPoint3d nodes_cart[MAX_NODES]; fgBUCKET ne_index, nw_index, sw_index, se_index; fgBUCKET north_index, south_index, east_index, west_index; /* convert a geodetic point lon(arcsec), lat(arcsec), elev(meter) to * a cartesian point */ -fgCartesianPoint3d geod_to_cart(double geod[3]) { - fgCartesianPoint3d cp; - fgPolarPoint3d pp; +fgPoint3d geod_to_cart(double geod[3]) { + fgPoint3d cp; + fgPoint3d pp; double gc_lon, gc_lat, sl_radius; /* printf("A geodetic point is (%.2f, %.2f, %.2f)\n", @@ -72,7 +72,7 @@ fgCartesianPoint3d geod_to_cart(double geod[3]) { pp.lon = gc_lon; pp.lat = gc_lat; - pp.radius = sl_radius+geod[2]; + pp.radius = sl_radius + geod[2]; cp = fgPolarToCart3d(pp); /* printf("A cart point is (%.8f, %.8f, %.8f)\n", cp.x, cp.y, cp.z); */ @@ -82,8 +82,8 @@ fgCartesianPoint3d geod_to_cart(double geod[3]) { /* given three points defining a triangle, calculate the normal */ -void calc_normal(fgCartesianPoint3d p1, fgCartesianPoint3d p2, - fgCartesianPoint3d p3, double normal[3]) +void calc_normal(fgPoint3d p1, fgPoint3d p2, + fgPoint3d p3, double normal[3]) { double v1[3], v2[3]; double temp; @@ -616,9 +616,12 @@ int main(int argc, char **argv) { /* $Log$ -/* Revision 1.11 1998/07/04 00:56:40 curt -/* typedef'd struct fgBUCKET. +/* Revision 1.1 1998/07/08 14:59:13 curt +/* *.[ch] renamed to *.[ch]xx /* + * Revision 1.11 1998/07/04 00:56:40 curt + * typedef'd struct fgBUCKET. + * * Revision 1.10 1998/05/02 01:54:37 curt * Converting to polar3d.h routines. * diff --git a/SplitTris/splittris.h b/SplitTris/splittris.hxx similarity index 76% rename from SplitTris/splittris.h rename to SplitTris/splittris.hxx index 6ed50d672..60d6dba99 100644 --- a/SplitTris/splittris.h +++ b/SplitTris/splittris.hxx @@ -1,5 +1,5 @@ -/* splittris.h -- read in a .ele/.node file pair generated by the triangle - * program and output edge vertices w/ normals. +/* splittris.hxx -- read in a .ele/.node file pair generated by the triangle + * program and output edge vertices w/ normals. * * Written by Curtis Olson, started January 1998. * @@ -24,8 +24,8 @@ */ -#ifndef SPLITTRIS_H -#define SPLITTRIS_H +#ifndef SPLITTRIS_HXX +#define SPLITTRIS_HXX #include @@ -43,13 +43,16 @@ extern int nodecount, tricount; void triload(char *basename); -#endif /* SPLITTRIS_H */ +#endif /* SPLITTRIS_HXX */ /* $Log$ -/* Revision 1.3 1998/03/03 15:36:13 curt -/* Tweaks for compiling with g++ +/* Revision 1.1 1998/07/08 14:59:14 curt +/* *.[ch] renamed to *.[ch]xx /* + * Revision 1.3 1998/03/03 15:36:13 curt + * Tweaks for compiling with g++ + * * Revision 1.2 1998/01/15 02:49:25 curt * Misc. housekeeping. *