From 8f9a1bcb56c021de6ee31b99d9244a0fa3857af3 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 20 Oct 1998 15:52:46 +0000 Subject: [PATCH] Fixed a units conversion bug introduced when converting to Point3D class. --- Tri2obj/tri2obj.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tri2obj/tri2obj.cxx b/Tri2obj/tri2obj.cxx index 20ecb0b2b..2079c3d4d 100644 --- a/Tri2obj/tri2obj.cxx +++ b/Tri2obj/tri2obj.cxx @@ -32,7 +32,6 @@ #include "tri2obj.hxx" #include -#include #include #include @@ -442,7 +441,9 @@ void triload(char *basename, char *basepath) { fscanf(node, "%d %lf %lf %lf %d\n", &junk1, &n[0], &n[1], &n[2], &junk2); // printf("%d %.2f %.2f %.2f\n", junk1, n[0], n[1], n[2]); - p = Point3D(n[0], n[1], n[2]); + p = Point3D( n[0] * ARCSEC_TO_RAD, + n[1] * ARCSEC_TO_RAD, + n[2] ); nodes[i] = fgGeodToCart(p); // printf("%d %.2f %.2f %.2f\n", // junk1, nodes[i].x, nodes[i].y, nodes[i].z); @@ -622,6 +623,9 @@ int main(int argc, char **argv) { // $Log$ +// Revision 1.4 1998/10/20 15:52:46 curt +// Fixed a units conversion bug introduced when converting to Point3D class. +// // Revision 1.3 1998/10/19 19:33:31 curt // C++-ification. //