Also, while I'm at it... In the vtkProjectedTetrahedraMapper.cxx around line 394 (Map2DependantComponents) is that a typo that you set colors[3] = scalars[3]? Shouldn't it be scalars[1] (2 components afterall) ?<br><br><div>
<span class="gmail_quote">On 4/5/06, <b class="gmail_sendername">Randall Hand</b> <<a href="mailto:randall.hand@gmail.com">randall.hand@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;"><span style="font-style: italic;">Sending this to vtkUsers because i'm tired of fighting against the 40k VTK-Developers limit.</span></div><div style="direction: ltr;"><span class="e" id="q_10a6afa5fa6ef9dc_1">
<br><span class="gmail_quote"><br></span><div style="direction: ltr;"><div style="direction: ltr;">
Does the vtkProjectedTetrahedraMapper work
with 2 or 4 component datasets? I have a dataset with a 2-component
scalar field (after alot of processing) where I want the first
component mapped to color and the the 2nd to opacity. Unfortunatly I
seem to get the 2nd component mapped to both opacity & a grayscale
colormap.
<br><br>I've attached 2 images. the first (test-decent.jpg) is with a
single-component scalar mapped to both, showing kinda how I expect it.
I modify it to add the extra component for opacity, which should just
make the top half of the image (above the sphere) transparent.
According to all the stats I gather on the resulting scalar field, it
looks good (number of points, number of components, ranges, magnitudes,
etc all look right). The second (
test.jpg) is with the dual-component scalar showing what comes out.<br clear="all"></div></div><div style="direction: ltr;"><span><span></span><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS
<br>Homepage:
<a href="http://www.yeraze.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.yeraze.com</a>
</span></div><br clear="all"><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.yeraze.com</a>
</span></div><br clear="all"></blockquote></div><br><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com">http://www.yeraze.com</a>