[vtkusers] Mesh Opacity

David Doria daviddoria at gmail.com
Wed May 22 07:55:26 EDT 2013


On Wed, May 22, 2013 at 4:13 AM, Max <smapersmaper at gmail.com> wrote:
> Hi JB,
> I did what you suggested, but the triangles at the edges are still shown.
> The added code is:
>
> vtkDepthSortPolyData depthSort = new vtkDepthSortPolyData();
> depthSort.SetInputConnection(boneNormals.GetOutputPort());
> depthSort.SetDirectionToBackToFront();
> depthSort.SetVector(0, 0, 0);
>
> depthSort.SetCamera(renderWindow.GetRenderers().GetFirstRenderer().GetActiveCamera());
> depthSort.SortScalarsOn();
> depthSort.Update();
>
> Maybe some property is not correct?
>
> Thank you,
> Max


Can you provide a screenshot of your object? It is unclear whether you
are actually drawing the edges separately and need to turn them off,
or are just concerned about the smoothness of the object.

David



More information about the vtkusers mailing list