[vtkusers] triangle mesh visualization
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Apr 5 11:29:19 EDT 2004
Julien,
Use two actors:
extract = vtk.vtkExtractEdges()
extract.SetInput(foo.GetOutput())
aTetraMapper = vtk.vtkDataSetMapper()
aTetraMapper.SetInput (extract.GetOutput())
aTetraMapper.ScalarVisibilityOff ()
aTetraMapper.SetResolveCoincidentTopologyToPolygonOffset()
aTetraMapper2 = vtk.vtkDataSetMapper()
aTetraMapper2.SetInput (foo.GetOutput())
aTetraMapper2.ScalarVisibilityOff ()
aTetraActor = vtk.vtkActor();
aTetraActor.SetMapper (aTetraMapper)
aTetraActor2 = vtk.vtkActor();
aTetraActor2.SetMapper (aTetraMapper2)
ScalarVisibilityOff is usefull if you want to control the contrast
edge/surface more than the actual scalar value.
SetResolveCoincidentTopologyToPolygonOffset to avoid the dashed lines.
HTH
Mathieu
Julien Mercenier wrote:
> Hi everybody,
>
> I have to visualize a triangle mesh in 3D.
> I managed in visualizing it with its wires or surfaces.
>
> But, when using
> SetRepresentationToWireframe() --> the wires from behin can be seen
> SetRepresentationToSurface() --> the edges aren't visible enough
>
> I'd like to visualize the triangle mesh but with edges in black and
> sufficiently visible.
> But I'd like not to see the edges (wires) from behind.
> An example would be a white opaque surface with well visible wires in black.
>
> Can someone help me ?
>
> Best regards,
>
> Julien
>
More information about the vtkusers
mailing list