MantisBT - VTK
View Issue Details
0012064VTK(No Category)public2011-04-09 14:342016-08-12 09:55
Erik Rasmussen 
Dave DeMarle 
normalminorhave not tried
closedmoved 
Apple MacOS X10.4.10
 
 
0012064: vtkImplicitPlaneRepresentation ignores NormalToZAxis, NormalToYAxis, and NormalToXAxis
I can't be sure what the intent was here; my assumption is that the intent was to lock the representation to axis-normal. It appears that these instance variables are unused (apart from being set/unset) in the class. If the intent is to force the representation to always be axis-normal, two things are needed.
1) In the method SetNormal(double x, double y, double z) we need something like
    if(this->NormalToXAxis) x=1.0; y=0.0; z=0.0;
    if(this->NormalToYAxis) x=0.0; y=0.0; z=0.0;
    if(this->NormalToZAxis) x=0.0; y=0.0; z=1.0;
2) Also in the methods SetNormalTo?Axis we need something like
  if (this->NormalToXAxis != var)
    {
    this->SetNormal(1.0,0.0,0.0); // no effect, but SetNormal needs to be called
    this->NormalToXAxis = var;
    this->Modified();
    }

There is another oddity with this class reported here http://public.kitware.com/pipermail/vtkusers/2010-January/105856.html [^] The way the code is currently structured, one must SetBounds that include the plane BEFORE doing SetOrigin and SetNormal, or they have no effect and are defaulted to {0,0,0} and x-normal.

Erik
Some of this may be due to me misinterpreting the intent of the class.
No tags attached.
Issue History
2011-04-09 14:34Erik RasmussenNew Issue
2011-06-16 13:12Zack GalbreathCategoryDevelopment => (No Category)
2013-06-05 15:41Jean-Christophe Fillion-RobinNote Added: 0030913
2013-07-22 18:36Dave DeMarleNote Added: 0031199
2013-07-22 18:36Dave DeMarleStatusbacklog => expired
2013-07-22 18:36Dave DeMarleAssigned To => Dave DeMarle
2016-08-12 09:55Kitware RobotNote Added: 0037229
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved

Notes
(0030913)
Jean-Christophe Fillion-Robin   
2013-06-05 15:41   
Does the problem still occur with VTK 5.10 ? VTK 6 ?

Would be great if you could submit a patch using Gerrit. For more details see http://www.vtk.org/Wiki/VTK/Git/Develop [^]

Thanks
Jc
(0031199)
Dave DeMarle   
2013-07-22 18:36   
If the bug is still present in 6.0.0, please reopen this report.
(0037229)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.