diff options
Diffstat (limited to 'src/libnurbs/internals/curvelist.cc')
-rw-r--r-- | src/libnurbs/internals/curvelist.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libnurbs/internals/curvelist.cc b/src/libnurbs/internals/curvelist.cc index da04eff..8f2ee46 100644 --- a/src/libnurbs/internals/curvelist.cc +++ b/src/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() |