[vtkusers] vtkPolyDataNormals - preventing error message about no data to generate normals for

Hills David A DAHILLS at qinetiq.com
Tue Nov 25 09:20:35 EST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081125/285fb51c/attachment.htm>


More information about the vtkusers mailing list