projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9867b6e
)
glu/sgi: Initialize members of class Curve.
author
Vinson Lee
<vlee@vmware.com>
Mon, 15 Feb 2010 06:04:59 +0000
(22:04 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Mon, 15 Feb 2010 06:04:59 +0000
(22:04 -0800)
src/glu/sgi/libnurbs/internals/curve.cc
patch
|
blob
|
history
diff --git
a/src/glu/sgi/libnurbs/internals/curve.cc
b/src/glu/sgi/libnurbs/internals/curve.cc
index 33e27526435c7463a1376d22fba814e1d2b7c6fa..27e9e3cdc98d67a09b38bc85e607858f3441951c 100644
(file)
--- 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;
}
/*--------------------------------------------------------------------------