[vtk-developers] [VTK 0011691]: Transform function return local memory

Mantis Bug Tracker mantis at public.kitware.com
Thu Jan 13 03:45:27 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11691 
====================================================================== 
Reported By:                Roy van Pelt
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   11691
Category:                   (No Category)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-13 03:45 EST
Last Modified:              2011-01-13 03:45 EST
====================================================================== 
Summary:                    Transform function return local memory
Description: 
vtkTransform provides a number of functions to transform points and vectors:

TransformDoublePoint
TransformDoubleVector
TransformDoubleNormal

The returned double* appears to be local, and may be invalidated right after
obtaining the return value

Steps to Reproduce: 
double* pointOut;
double* normalOut;

pointOut  = transform->TransformDoublePoint(point);
normalOut = transform->TransformDoubleNormal(normal);

// at this point, pointOut is invalidated
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-13 03:45 Roy van Pelt   New Issue                                    
======================================================================




More information about the vtk-developers mailing list