[vtkusers] two scalars for a single unstructured grid??

Rakesh Patil rakeshthp at in.com
Tue Feb 16 08:27:30 EST 2010


 Well, Thank you sir. After adding array, how do i inform the application which array should it use to scale the arrows and which array to use to color??Thanks Original message From:Berk Geveci< berk.geveci at kitware.com >Date: 16 Feb 10 17:04:58Subject:Re: [vtkusers] two scalars for a single unstructured grid??To: Rakesh Patil You can simply add another scalar array withfoo>SetName("my scalar");uGrid>GetPointData()>AddArray(foo);The attributes are merely for convenience  they are treated like any other array. Most filters have methods to select any arbitrary array by name. It is usually something like SetInputArrayToProces(...) for filters. berkOn Tue, Feb 16, 2010 at 6:06 AM, Rakesh Patilwrote:Hello, Is it possible to use two scalars for a single unstructured grid.?? Actually, to display vectors I am computing scale factor for each point and storing in a data array and i set this array as a scalar for unstructured grid: uGrid>SetScalar(vecvalues);and i set this grid to glyph 
 objectglyph>SetInput(uGrid);and say,glyph>SetScaleModeToScaleByScalar();BY doing so, i get the desired output.. But when i want to display colored vectors, then i need to replace this scalar data array with color data array.. So my question is, by re[placing, will my scale factor data array be affected??If so is there any technique, where in i can attach more than one data array as a scalar to unstructured grid..?Thanks Powered by www.kitware.comVisit other Kitware opensource projects at http://www.kitware.com/opensource/opensource.htmlPlease keep messages ontopic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTKFAQFollow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100216/28309763/attachment.htm>


More information about the vtkusers mailing list