various problems with vtk

antonio.giurini at lycosmail.com antonio.giurini at lycosmail.com
Mon Sep 27 06:35:01 EDT 1999


Hi,

1) I'm using vtk 2.0 and I've some problems whith memory allocation and memory leaks.
Do you know if there are problems with vtk's reference counting?


2) I'worked with vtkTubeFilter an I think I've discovered a little bug (vtk 2.0) in void vtkTubeFilter::Execute():

      if ( inScalars ) // varying by scalar values
        {
	/* VTK 2.0 version: "inScalars->GetScalar(****j*****)"
	it works only if inLines describes 1! polyline
        sFactor = 1.0 + ((this->RadiusFactor - 1.0) * 
                  (inScalars->GetScalar(j) - range[0]) / (range[1]-range[0]));
	*/
	// New :
       sFactor = 1.0 + ((this->RadiusFactor - 1.0) * 
                  (inScalars->GetScalar(pts[j]) - range[0]) / (range[1]-range[0]));
	
	if ((range[1] - range[0]) == 0.0)
	  {
	  vtkErrorMacro(<< "Dividing by zero");
	  }
        }

Thanks, Antonio


-----------------------------------------------------------------
Get free personalized email from Lycos at http://it.lycosmail.com


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list