[vtk-developers] [VTK 0013499]: VTK 5.10: vtkPlane: projectVector function rescales the plane normal
Mantis Bug Tracker
mantis at public.kitware.com
Tue Oct 9 10:00:39 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://www.vtk.org/Bug/view.php?id=13499
======================================================================
Reported By: mneugeba2
Assigned To:
======================================================================
Project: VTK
Issue ID: 13499
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: backlog
Project: TBD
Type: incorrect functionality
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 2012-10-09 10:00 EDT
Last Modified: 2012-10-09 10:00 EDT
======================================================================
Summary: VTK 5.10: vtkPlane: projectVector function rescales
the plane normal
Description:
When using the projectVector function of an vtkPlane instance, the normal vector
of this instance is rescaled (i.e. length is unequal to 1).
The reason for this is the usage of vtkMath::MultiplyScalar(normal, dotProd); in
the implementation of the projectVector function. This rescales the
normal-vector of the plane. I recommend to use a copy of the normal-vector for
MultiplyScalar instead of the original double[3]. A simple
vtkMath::normalize(normal) afterwards wouldn't do the job, since the normal
could be flipped.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-10-09 10:00 mneugeba2 New Issue
======================================================================
More information about the vtk-developers
mailing list