summaryrefslogtreecommitdiff
path: root/src/glu
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-14 22:04:59 -0800
committerVinson Lee <vlee@vmware.com>2010-02-14 22:04:59 -0800
commit53d448657bd300ab68b2869b2fba76a627699baf (patch)
tree149f4c03ad7e01681f83ea1157d7666694ab31eb /src/glu
parent9867b6eaad0f67f74b3bb98e2c120312117208ba (diff)
glu/sgi: Initialize members of class Curve.
Diffstat (limited to 'src/glu')
-rw-r--r--src/glu/sgi/libnurbs/internals/curve.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glu/sgi/libnurbs/internals/curve.cc b/src/glu/sgi/libnurbs/internals/curve.cc
index 33e2752643..27e9e3cdc9 100644
--- a/src/glu/sgi/libnurbs/internals/curve.cc
+++ b/src/glu/sgi/libnurbs/internals/curve.cc
@@ -85,6 +85,14 @@ Curve::Curve( Quilt_ptr geo, REAL pta, REAL ptb, Curve *c )
if( range[1] != ptb ) {
Curve lower( *this, ptb, 0 );
}
+
+ for( int i = 0; i < MAXORDER * MAXCOORDS; i++ ) {
+ cpts[i] = 0;
+ spts[i] = 0;
+ }
+
+ stepsize = 0;
+ minstepsize = 0;
}
/*--------------------------------------------------------------------------