From e30c10841c7f9d92770372374b890f9b6ac2e336 Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 16 May 1998 13:11:25 +0000 Subject: [PATCH] Fixed an off by one error in node, normal, and face counters. --- FixObj/Makefile.in | 4 ++-- FixObj/obj.c | 13 ++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/FixObj/Makefile.in b/FixObj/Makefile.in index 7b70d91da..b42166e35 100644 --- a/FixObj/Makefile.in +++ b/FixObj/Makefile.in @@ -347,8 +347,8 @@ INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib #--------------------------------------------------------------------------- # $Log$ -# Revision 1.11 1998/05/13 18:30:20 curt -# Updated ... +# Revision 1.12 1998/05/16 13:11:25 curt +# Fixed an off by one error in node, normal, and face counters. # # Revision 1.4 1998/04/24 00:44:05 curt # Added zlib support. diff --git a/FixObj/obj.c b/FixObj/obj.c index fac87b623..b06c0d6b0 100644 --- a/FixObj/obj.c +++ b/FixObj/obj.c @@ -202,9 +202,9 @@ void obj_fix(char *infile, char *outfile) { /* I start counting at one because that is how the triangle program refers to nodes and normals */ first = 1; - ncount = 1; - vncount = 1; - fcount = 1; + ncount = 0; + vncount = 0; + fcount = 0; printf("Reading file: %s\n", infile); @@ -380,9 +380,12 @@ void obj_fix(char *infile, char *outfile) { /* $Log$ -/* Revision 1.11 1998/04/27 15:59:24 curt -/* Fixed an off by one error. +/* Revision 1.12 1998/05/16 13:11:26 curt +/* Fixed an off by one error in node, normal, and face counters. /* + * Revision 1.11 1998/04/27 15:59:24 curt + * Fixed an off by one error. + * * Revision 1.10 1998/04/27 03:33:11 curt * Code now calculates a center reference points and outputs everything * relative to that. This is useful in the rendering engine to keep everything -- 2.39.5