<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Mengda Wu wrote:
<blockquote
cite="mide56638dd0701020149r8dc61abi7249a5bb45ffaafb@mail.gmail.com"
type="cite">Thanks for your answer.<br>
<br>
Then, for the data which has multiple scalars or vectors.<br>
How to tell a filter(such as threshold, contour, glyph, etc.) to
operate on a particular scalar or vector?<br>
</blockquote>
you may look at the file
Graphics/Testing/Cxx/TestHierarchicalBoxPipeline.cxx for an example in
C++<br>
<br>
vtkContourFilter* contour = vtkContourFilter::New();<br>
contour->SetInputConnection(0, c2p->GetOutputPort(0));<br>
contour->SetValue(0, -0.013);<br>
contour->SetInputArrayToProcess(0,0,0,vtkDataObject::FIELD_ASSOCIATION_POINTS,"phi");<br>
<br>
the last line does what you want: tell the contour to operate on the
scalar field called "phi"<br>
<br>
hope this helps<br>
-- <br>
<div class="moz-signature"><img
src="cid:part1.03030405.09070400@cscs.ch" border="0"></div>
</body>
</html>