On 3/26/08, <b class="gmail_sendername">William E Lucarell</b> &lt;<a href="mailto:welucarell@equityeng.com">welucarell@equityeng.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">I've been playing around with vtkFeatureEdges to represent
a mesh.&nbsp; I have an actor for my mesh based on my geometry filter.&nbsp; The correct
edges occur; however, when I set the color and the edge color, the edges are
still <b>blue</b>.&nbsp; I want them to be black so I used the SetColor(r,g,b)
method after calling the GetProperty() method of the vtkActor.&nbsp; Why are my
edges still blue and not black?</span></p></div></div></blockquote><div><br>The mapper is coloring the edges based on the scalar value (effectively
based on the edge type). You should turn Coloring off on
vtkFeatureEdges. <br>
<br>
Please see vtkFeatureEdges::SetColoring<br>
<br>
Or turn ScalarVisibilityyOff on the vtkPolydataMapper. But the former
is the preferred method since you do not need scalars anyway.<br>
<br>
HTH<br>
--<br>
karthik&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryFilter = new vtkGeometryFilter();</span></p>


<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryFilter.SetInput(TestMesh);</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryFilter.Update();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometry = new vtkFeatureEdges();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometry.SetFeatureAngle(80);</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometry.NonManifoldEdgesOff();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometry.BoundaryEdgesOn();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometry.FeatureEdgesOff();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometry.ManifoldEdgesOn();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometry.SetColoring(0);</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometry.SetInput(geometryFilter.GetOutput());</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; // Add the outline mapper and actor</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryMapper = new vtkPolyDataMapper();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryMapper.SetInput(geometry.GetOutput());</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryActor = new vtkActor();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryActor.SetMapper(geometryMapper);</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryActor.GetProperty().SetEdgeColor(0,0,0);</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryActor.GetProperty().SetColor(0,0,0);</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryActor.GetProperty().SetRepresentationToWireframe();</span></p>

<p><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;&nbsp;&nbsp; geometryActor.GetProperty().SetLineWidth(0.5);</span></p>

<p><b><i><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;</span></i></b></p>

<p><b><i><span style="font-size: 10pt; color: rgb(0, 51, 127);">Thanks,</span></i></b></p>

<p><b><i><span style="font-size: 10pt; color: rgb(0, 51, 127);">&nbsp;</span></i></b></p>

<p><b><i><span style="font-size: 10pt; color: rgb(0, 51, 127);">Bill</span></i></b><span style="color: navy;"></span></p>

<p>&nbsp;</p>

</div>

</div>


<br>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>