View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013499 | VTK | (No Category) | public | 2012-10-09 10:00 | 2014-10-02 15:43 | ||||
Reporter | mneugeba2 | ||||||||
Assigned To | Cory Quammen | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | 6.1.0 | |||||||
Summary | 0013499: 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. | ||||||||
Tags | No tags attached. | ||||||||
Project | TBD | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0031061) Dave DeMarle (administrator) 2013-06-25 14:12 |
Thanks. Would you mind submitting the suggested fix in gerrit to facilitate automated testing and review? For details on how to do so see http://www.vtk.org/Wiki/VTK/Git/Develop [^] |
(0033530) Cory Quammen (developer) 2014-10-02 15:43 |
Fixed in commit: commit ba3c24c3f0739718a482d2f8e8f33f024bcbf8cf Author: David Gobbi <david.gobbi@gmail.com> Date: Tue Jul 30 22:26:03 2013 -0600 ProjectVector method was modifying plane normal. Thanks to David Jarvis for pointing out this bug. Projecting a vector would cause the plane's normal to be multiplied by the dotprod of the plane and the vector (in some cases, causing the normal to become zero). Obviously the ProjectVector() function should not modify the normal. Change-Id: Idaa86fdad897777a65fba6f8ac5309a3582175e6 |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-10-09 10:00 | mneugeba2 | New Issue | |
2013-06-25 14:12 | Dave DeMarle | Note Added: 0031061 | |
2014-10-02 15:43 | Cory Quammen | Note Added: 0033530 | |
2014-10-02 15:43 | Cory Quammen | Status | backlog => closed |
2014-10-02 15:43 | Cory Quammen | Assigned To | => Cory Quammen |
2014-10-02 15:43 | Cory Quammen | Resolution | open => fixed |
2014-10-02 15:43 | Cory Quammen | Fixed in Version | => 6.1.0 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |