[vtkusers] vtkPolyDataNormals - preventing error message about no data to generate normals for
Hills David A
DAHILLS at qinetiq.com
Tue Nov 25 09:28:56 EST 2008
Many thanks for the response. That'll do the job. I probably should have
known this but I'm still finding my way with VTK.
Thanks again
David Hills
Research Scientist, General Munitions
QinetiQ iX
Bldg Q27 Rm HT-2
MoD Fort Halstead
Sevenoaks
Kent, TN14 7BP
Tel: 01959 514836
Email: dahills at QinetiQ.com
Fax: 01959 516050
Web: www.QinetiQ.com/iX
QinetiQ iX - Independent expertise where it matters most
* Please consider the environment before printing this email.
-----Original Message-----
From: Amy Squillacote [mailto:ahs at cfdrc.com]
Sent: 25 November 2008 14:23
To: Hills David A
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] vtkPolyDataNormals - preventing error message
about no data to generate normals for
Hi Dave,
If you want to disable all warning, debug, and error messages coming
from VTK, you can use the static GlobalWarningDisplayOff() method of
vtkObject:
http://www.vtk.org/doc/nightly/html/classvtkObject.html#4bc46239efb79cd3
4504ff94e1710d9c.
Alternatively, you could send the warning, debug, and error output to a
file using vtkFileOutputWindow:
http://www.vtk.org/doc/nightly/html/classvtkFileOutputWindow.html.
- Amy
Hills David A wrote:
> -->
>
> Hi all,
>
> I'm using a vtkContourFilter through a vtkPolyDataNormals filter. The
> level of the contour filter can be changed by my GUI. If it gets
> changed to a value where there is no surface (like 0), I get a pop-up
> vtk error message telling me that there are "No data to generate
> normals for". I can see why that's happening but I'm quite happy for
> nothing to be drawn in this case (indeed, that's what I want it to
> do). Is there a way to disable this message? Or, is there a way for me
> to check if the vtkContourFilter is producing empty output and then
> not try to render things?
>
> Thanks,
>
> Dave
>
> David Hills
> Research Scientist, General Munitions
>
> QinetiQ iX
> Bldg Q27 Rm HT-2
> MoD Fort Halstead
> Sevenoaks
> Kent, TN14 7BP
>
> Tel:
>
>
>
> 01959 514836
>
> Email:
>
>
>
> dahills at QinetiQ.com
>
> Fax:
>
>
>
> 01959 516050
>
> Web:
>
>
>
> www.QinetiQ.com/iX <http://www.qinetiq.com/iX>
>
> QinetiQ iX - Independent expertise where it matters most
>
> P /Please consider the environment before printing this email./
>
> The information contained in this E-Mail and any subsequent
> correspondence is private and is intended solely for the intended
> recipient(s). The information in this communication may be
> confidential and/or legally privileged. Nothing in this e-mail is
> intended to conclude a contract on behalf of QinetiQ or make QinetiQ
> subject to any other legally binding commitments, unless the e-mail
> contains an express statement to the contrary or incorporates a formal
> Purchase Order.
>
> For those other than the recipient any disclosure, copying,
> distribution, or any action taken or omitted to be taken in reliance
> on such information is prohibited and may be unlawful.
>
> Emails and other electronic communication with QinetiQ may be
> monitored and recorded for business purposes including security, audit
> and archival purposes. Any response to this email indicates consent
> to this.
>
> Telephone calls to QinetiQ may be monitored or recorded for quality
> control, security and other business purposes.
>
> QinetiQ Limited
> Registered in England & Wales: Company Number:3796233
> Registered office: 85 Buckingham Gate, London SW1E 6PD, United Kingdom
> Trading address: Cody Technology Park, Cody Building, Ively Road,
> Farnborough, Hampshire, GU14 0LX, United Kingdom
> http://www.qinetiq.com/home/notices/legal.html
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Amy Squillacote Phone: (256) 726-4839
Computer Scientist Fax: (256) 726-4806
CFD Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
The QinetiQ e-mail privacy policy and company information is detailed elsewhere in the body of this email.
More information about the vtkusers
mailing list