[vtkusers] vtkPoints->ComputeBounds

Yan Pingkun engp1734 at nus.edu.sg
Thu Mar 25 22:19:59 EST 2004


Hi,
 
I have solved this problem by calling vtkPoints->Modified() before
computing bounds. But I wonder if this should be done by the objects
implicitly?
 
Regards,
Pingkun

	-----Original Message-----
	From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On
Behalf Of Yan Pingkun
	Sent: Friday, March 26, 2004 12:43 AM
	To: vtkusers at vtk.org
	Subject: [vtkusers] vtkPoints->ComputeBounds
	
	
	Hi all,
	 
	I'm trying to modify vtkPolyData by getting vtkPoints and the
point values are changed successfully. But the problem is that I want to
can't update the bounds. I called vtkPoints->ComputeBounds(), but it
doesn't work. I traced into the source code and found the condition
	=======================
	if ( this->GetMTime() > this->ComputeTime )
	=======================
	is always false. Hence, the bounds can't be updated.
	 
	Anybody can help?
	 
	Thanks!
	 
	Regards,
	Pingkun

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040326/e6230943/attachment.htm>


More information about the vtkusers mailing list