[vtkusers] Error with vtkPlaneSource
bill.lorensen at gmail.com
Sat Jun 12 10:51:23 EDT 2010
It is a bad design of the planesource class. However, you can ignore
When you call SetPoint1 and SetPoint2, the normal to the plane is
calculated by UpdatePlane(). The first call results in a bad normal
(because the default Point2 is -.5, .5,0)). The call to SetPoint2
results in a valid normal.
The error message should be output only when the UpdatePlane() is bad
in the the RequestInformation() method.
I'll make that change, but for now, just ignore the message.
On Sat, Jun 12, 2010 at 9:44 AM, Dorival Pedroso
<dorival.pedroso at gmail.com> wrote:
> Hi all,
> I'm just wondering why the vtkPlaneSource doesn't like the following triad ???
> plane -> SetOrigin (-0.5, 0.0, 0.0);
> plane -> SetPoint1 (-0.5, 1.0, 0.0);
> plane -> SetPoint2 (-0.5, 0.0, 1.0);
> With the attached code I get this error:
> ERROR: In /build/buildd/vtk-5.2.1/Graphics/vtkPlaneSource.cxx, line 386
> vtkPlaneSource (0x93f4028): Bad plane coordinate system
> If the origin is changed to (-0.49999, 0.0, 0.0) then it's all fine.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
More information about the vtkusers