diff options
author | Vinson Lee <[email protected]> | 2010-02-14 22:18:41 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-14 22:18:41 -0800 |
commit | 4bbcc11f4307d2da64d34f6926134b71e1d2c73f (patch) | |
tree | 5c898e9942973a8d907c572e2c7c79488fe4f06c /src | |
parent | 53d448657bd300ab68b2869b2fba76a627699baf (diff) |
glu/sgi: Initialize members of class Curvelist.
Diffstat (limited to 'src')
-rw-r--r-- | src/glu/sgi/libnurbs/internals/curvelist.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/glu/sgi/libnurbs/internals/curvelist.cc b/src/glu/sgi/libnurbs/internals/curvelist.cc index da04eff467f..8f2ee4678d2 100644 --- a/src/glu/sgi/libnurbs/internals/curvelist.cc +++ b/src/glu/sgi/libnurbs/internals/curvelist.cc @@ -59,16 +59,17 @@ Curvelist::Curvelist( Quilt *quilts, REAL pta, REAL ptb ) Curvelist::Curvelist( Curvelist &upper, REAL value ) { - Curvelist &lower = *this; curve = 0; for( Curve *c = upper.curve; c; c = c->next ) curve = new Curve( *c, value, curve ); - lower.range[0] = upper.range[0]; - lower.range[1] = value; - lower.range[2] = value - upper.range[0]; + range[0] = upper.range[0]; + range[1] = value; + range[2] = value - upper.range[0]; upper.range[0] = value; upper.range[2] = upper.range[1] - value; + needsSubdivision = 0; + stepsize = 0; } Curvelist::~Curvelist() |