[vtkusers] [PATCH] - vtkBoxWidget
Martins D Innus
minnus at eng.buffalo.edu
Wed Aug 6 16:03:49 EDT 2003
Hi,
Without the attached patch, an observer I had setup to watch
"planes" was being called too early. Could somebody apply this? Thanks.
Martins
-----------------------------------------------------------------------
Martins Innus (716) 645-6500 x534
Scientific Visualization Specialist minnus at ccr.buffalo.edu
Center for Computational Research www.ccr.buffalo.edu/martins.htm
University at Buffalo
Index: Hybrid/vtkBoxWidget.cxx
===================================================================
RCS file: /cvsroot/VTK/VTK/Hybrid/vtkBoxWidget.cxx,v
retrieving revision 1.37
diff -u -r1.37 vtkBoxWidget.cxx
--- Hybrid/vtkBoxWidget.cxx 29 Jul 2003 20:17:40 -0000 1.37
+++ Hybrid/vtkBoxWidget.cxx 6 Aug 2003 19:50:29 -0000
@@ -1067,9 +1067,6 @@
normals->SetNumberOfComponents(3);
normals->SetNumberOfTuples(6);
- planes->SetPoints(pts);
- planes->SetNormals(normals);
-
// Set the normals and coordinate values
float factor = (this->InsideOut ? -1.0 : 1.0);
for (int i=0; i<6; i++)
@@ -1078,6 +1075,9 @@
normals->SetTuple3(i, factor*this->N[i][0], factor*this->N[i][1],
factor*this->N[i][2]);
}
+
+ planes->SetPoints(pts);
+ planes->SetNormals(normals);
pts->Delete();
normals->Delete();
More information about the vtkusers
mailing list